Afterpay configuration
To use Afterpay, add a new payment method in Adyen's dashboard and add afterpaytouch
to the availablePaymentMethods
array in nuxt.config.js
:
// nuxt.config.js
export default {
modules: [
['@vsf-enterprise/adyen-commercetools/nuxt', {
availablePaymentMethods: [
'scheme',
'afterpaytouch'
],
// ...
}]
]
};
Read Adyen's document about Afterpay (opens new window) to check a list of supported countries and currencies.
Email Address
Afterpay requires the customer's email address to work correctly. It will be read from cart.customerEmail
property with fallback to the cart.customer.email
property. Make sure to put it in one of them.