Cards configuration
To accept debit/credit card payments, you have to add scheme
to the availablePaymentMethods
array in nuxt.config.js
:
// nuxt.config.js
export default {
modules: [
['@vsf-enterprise/adyen-commercetools/nuxt', {
availablePaymentMethods: [
'scheme'
],
// ...
}]
]
};
Saving customer cards
You can enable storing cards for authenticated users by setting the value of recurringPayments
.
// nuxt.config.js
export default {
modules: [
['@vsf-enterprise/adyen-commercetools/nuxt', {
recurringPayments: true,
availablePaymentMethods: [
'scheme'
],
// ...
}]
]
};
Now users will be able to select cards they decided to save in previous transactions and only provide a CVC/CVV number. It will also add a posibility to remove saved cards.