PayPal configuration
To use PayPal, add a new payment method in Adyen's dashboard and add paypal
to the availablePaymentMethods
array in nuxt.config.js
:
// nuxt.config.js
export default {
modules: [
['@vsf-enterprise/adyen-commercetools/nuxt', {
availablePaymentMethods: [
'scheme',
'paypal'
],
methods: {
paypal: {
merchantId: '<PAYPAL_MERCHANT_ID>',
intent: 'capture'
}
}
// ...
}]
]
};
methods.paypal
:intent
:capture
to take cash immediately orauthorize
to delay a charging.merchantId
: 13-chars code that identifies your merchant account. How do I find my Secure Merchant ID on my PayPal account? (opens new window).
Read Adyen's document about PayPal (opens new window) to check available configuration.
Be careful not to overwrite PayPal's onCancel
and onError
callbacks (e.g. with beforeLoad
hook) as they are used to allow retrying the payment by the user in case of an error or payment cancellation.