Are you looking for test card numbers?

Would you like to contact support?

No momento, esta página não está disponível em português
Classic-integration icon

Store payment details

This page is for our Classic API (/authorise) integration. If you are integrating using our Checkout APIs, refer to the Tokenization documentation instead.

A recurring contract is created along with a payment request, similar to a regular payment request, except the below fields to be provided in the payment session HPP form or in the API request. If the payment is successful, the details are stored, and the recurringDetailReference is created. Set the recurringProcessingModel to: 

  • Subscription for payments that recur on a fixed schedule.
  • CardOnFile for payments that do not occur on a fixed schedule.
  • UnscheduledCardOnFile for payments that occur on a non-fixed schedule using stored card details. For example, automatic top-ups when a cardholder's balance drops below certain amount.

For more information on available fields, refer to API Explorer.

Always provide a unique shopperReference parameter for every shopper. Note that you can store maximum 100 card details associated with the same shopperReference value.


The following code examples show the creation of recurring contracts together with a payment request using /authorise endpoint in JSON, SOAP, and cURL.

      "holderName":"John Smith"
   "reference":"Your Reference Here",
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="" xmlns:xsd="" xmlns:xsi=" instance">
    <ns1:authorise xmlns:ns1="">
        <amount xmlns="">
          <value xmlns="">2000</value>
          <currency xmlns="">EUR</currency>
        <card xmlns="">
          <holderName>Adyen Test</holderName>
        <merchantAccount xmlns="" >SupportAdyenTest</merchantAccount>
        <reference xmlns="">Your Reference Here</reference>
        <shopperEmail xmlns=""></shopperEmail>
        <shopperIP xmlns=""></shopperIP>
        <shopperReference xmlns="">YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j</shopperReference>
curl \
 -d amount.value=2000 \
 -d amount.currency=EUR \
 -d card.number=4111111111111111 \
 -d card.expiryMonth=03 \
 -d card.expiryYear=2030 \
 -d card.cvc=737 \
 -d card.holderName=John+Smith \
 -d reference=Your+Reference+Here \
 -d merchantAccount=TestMerchant \
 -d \
 -d shopperIP= \
 -d shopperReference=YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j \
 -d recurring.contract=RECURRING,ONECLICK

When you are ready to process a subsequent payment, set the value of the selectedRecurringDetailReference to either:

  • The recurringDetailReference returned from the list of all stored recurring details based on the shopperReference provided during the recurring contract.

  • The word "LATEST", which uses a recent recurring detail.

On AUTHORISATION you receive a notification with success="true".