Adyen is no longer developing the Classic API integration
This page is for the Classic API (/authorise
) integration, which we no longer accept new integrations with.
We strongly recommend switching to the newer Tokenization integration.
After you successfully stored payment details during the first /authorise
call, you can refer to these details in subsequent calls every time a recurring payment should take place.
One-click payments
For subsequent one-click payments, include in your /authorise request:
card.cvc
: the card CVC that you collected from the shopper.recurring.contract
: ONECLICKrecurringProcessingModel
: CardOnFileshopperReference
: TheshopperReference
that you specified when storing the payment details.shopperInteraction
: ContAuthselectedRecurringDetailReference
: Either therecurringDetailReference
returned from the list of all stored details based on theshopperReference
, or LATEST to use the most recent recurring detail.
The following code examples show the request of a one-click payment.
If you are hosting the CSE library, include the encrypted card CVC in additionalData
:
{
"amount":{
"value":2000,
"currency":"EUR"
},
"additionalData":{
"card.encrypted.json":"adyenjs_0_1_18$*******"
},
"reference":"Your Reference Here",
"merchantAccount":"YOUR_MERCHANT_ACCOUNT",
"shopperEmail":"s.hopper@test.com",
"shopperIP":"61.294.12.12",
"shopperReference":"YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
"selectedRecurringDetailReference":"LATEST",
"recurring":{
"contract":"ONECLICK"
},
"recurringProcessingModel":"CardOnFile",
"shopperInteraction":"ContAuth"
}
Recurring payments
For subsequent recurring payments, include in your /authorise request:
recurring.contract
: RECURRINGrecurringProcessingModel
: SubscriptionshopperReference
: TheshopperReference
that you specified when storing the payment details.shopperInteraction
: ContAuthselectedRecurringDetailReference
: Either therecurringDetailReference
returned from the list of all stored details based on theshopperReference
, or LATEST to use the most recent recurring detail.
The following code examples show the request of a recurring payment.