Recurring payment

A recurring payment session is set up like a regular payment. However, you need to include in the payment request a set of additional fields:

Name Type Required Description
recurring Class  (tick)

A container for the type of recurring contract to be used.

recurring contains the following child:

  • contract
contract String (tick)

The type of recurring contract to be used.

If ONECLICK,RECURRING was specified when creating the recurring contract, then this field should be RECURRING.

shopperEmail String (error)

The shopper's email address.

It does not need to match the email address supplied with the initial payment.

shopperReference String (tick)

An ID that uniquely identifies the shopper.

This shopperReference must be the same as the shopperReference used in the initial payment.

shopperInteraction String (tick)

The shopper interaction.

Set to ContAuth.

selectedRecurringDetailReference

String (tick)

The recurringDetailReference you want to use for this payment.

The value LATEST can be used to select the most recently stored recurring detail.

selectedBrand String (error)

The targeted payment method that you want to use for the recurring transaction.

Required for non-card recurring transactions, such as recurring payments for iDeal and Sofort, as these require a value of sepadirectdebit in the recurring payment to force their processing as SEPA direct debit transactions.

The following code examples show the request of a recurring payment in JSON, FORM, and SOAP.

{
    "amount" : {
        "value" : 2000,
        "currency" : "EUR"
    },
     
    "reference" : "Your Reference Here",
    "merchantAccount" : "TestMerchant",
    "shopperEmail" : "s.hopper@test.com",
    "shopperIP" : "61.294.12.12",
    "shopperReference" : "Simon Hopper",
    "selectedRecurringDetailReference" : "LATEST",
	"selectedBrand" : "",
    "recurring": {
        "contract" : "RECURRING"
    },

    "shopperInteraction" : "ContAuth"
}
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance">
  <soap:Body>
    <ns1:authorise xmlns:ns1="http://payment.services.adyen.com">
      <ns1:paymentRequest>
        <amount xmlns="http://payment.services.adyen.com">
          <currency xmlns="http://common.services.adyen.com">EUR</currency>
          <value xmlns="http://common.services.adyen.com">2000</value>
        </amount>
        <merchantAccount xmlns="http://payment.services.adyen.com">TestMerchant</merchantAccount>
        <reference xmlns="http://payment.services.adyen.com">Your Reference Here</reference>
        <shopperEmail xmlns="http://payment.services.adyen.com">s.hopper@test.com</shopperEmail>
        <shopperIP xmlns="http://payment.services.adyen.com">61.294.12.12</shopperIP>
        <selectedBrand xmlns="http://payment.services.adyen.com" xsi:nil="true"/>
        <shopperReference xmlns="http://payment.services.adyen.com">Simon Hopper</shopperReference>
        <selectedRecurringDetailReference xmlns="http://payment.services.adyen.com">LATEST</selectedRecurringDetailReference>
        <recurring xmlns="http://payment.services.adyen.com">
          <contract xmlns="http://payment.services.adyen.com">RECURRING</contract>
        </recurring>
        <shopperInteraction xmlns="http://payment.services.adyen.com">ContAuth</shopperInteraction>
       </ns1:paymentRequest>
    </ns1:authorise>
  </soap:Body>
</soap:Envelope>
merchantAccount=TestMerchant&amount.value=2000&amount.currency=EUR&reference=Your+Reference+Here&shopperReference=Simon+Hopper&shopperEmail=s.hopper%40test.com&shopperIP=61.294.12.12&recurring.contract=RECURRING&selectedRecurringDetailReference=LATEST&shopperInteraction=ContAuth&selectedBrand=