How it works
When a shopper is making a payment, a Save for my next payment checkbox will appear. If the checkbox is selected, shopper payment details will be securely stored. The plugin uses the Adobe Commerce Vault to store the token information. The shopper can choose express checkout, by selecting an Instant purchase button right next to the product. The shopper will be asked to provide their CVC to complete the payment.Requirements
- Enable RECURRING_CONTRACT webhooks in your Customer Area.
Step 1: Set up the Vault in Adobe Commerce
- Log in to your Adobe Commerce admin panel.
- In the left navigation bar, go to Stores > Configuration.
- In the menu, go to Sales > Payment Methods.
- Select Configure next to Adyen Payments.
- Go to Payment Optimization > Tokenization and fill in the following fields for each payment method you want to tokenize:
- Select Save Config in the upper right corner.
Step 2: Set up recurring contracts in Adyen
- Log in to your Customer Area, and switch to your merchant account.
- Go to Developers > Additional data.
-
Under Card, select the following fields:
- Cardholder name
- Card bin
- Card summary
- Expiry date
- Variant
-
Under Payment, select the following field:
- Recurring details
- Select Save configuration.
Step 3 (optional): Configure risk settings in Adyen Customer Area
Optionally, you can apply risk rules to tokenized payments. To configure risk settings that apply to tokenized payments:- Log in to your Customer Area, and switch to your merchant account.
- Go to Revenue & risk > Settings.
- Turn on Exclude recurring transactions from risk evaluation.
- Turn off IP-based risk checks for recurring transactions and Velocity risk checks for recurring transactions.
Subscription payments
Adyen’s tokens are valued for automatic subscription payments. However, there is no functionality native to Adobe Commerce that supports automatic transactions where the shopper is not present. Implementing subscription payments therefore requires additional integration effort. Shopper tokens are stored in thevault_payment_token database table. For each token, this table includes:
shopperReference: Stored in Adobe Commerce as thecustomer_id.storedPaymentMethodId: Stored in Adobe Commerce as thegateway_token.