Configuring SEPA Direct Debit
Learn how to configure SEPA Direct Debit for DigitalRiver.js with Elements.
You can find an example of integration here.
If you're using DigitalRiver.js with Elements, you can create a SEPA Direct Debit payment method for your app or website in four easy steps:
Step 1: Build a SEPA Direct Debit source request and details objects
Build the SEPA Direct Debit Source Request and Details objects.
SEPA Direct Debit source request object
A SEPA Direct Debit Source Request object requires the following fields.
Field | Value |
---|---|
|
|
| The payment session identifier. |
owner | An Owner object. |
directDebit | A SEPA Direct Debit Source Details object that includes the details of the transaction. |
SEPA Direct Debit source details object
The SEPA Direct Debit Source Details object requires the following fields.
Field | Required/Optional | Description |
---|---|---|
| Required | If you choose to use the full redirect flow, this is where you will redirect your customer to after authorizing or canceling within the SEPA Direct Debit experience. |
Step 2: Create a SEPA Direct Debit source using DigitalRiver.js
Use the DigitalRiver.js library to create and mount elements to the HTML container.
The address
object must contain postal code and state/province data that adhere to a standardized format.
SEPA Direct Debit source example
Step 3: Authorize a SEPA Direct Debit source
When you create a SEPA Direct Debit source, the customer must authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.
Redirecting the customer for SEPA Direct Debit authorization
To redirect your customer for authorization, use the redirectUrl
parameter in your createSource
response.
The payment provider will present the customer with the transaction details where they can authorize or cancel the transaction. A successful authorization redirects the customer to the SEPA Direct Debit Return URL parameter you specified when you created the source.
Step 4: Use the Authorized source
Once authorized, you can use the source by attaching it to a checkout or to a customer for multiple uses.
Option 1. Attach the source to a checkout
Option 2. Attach the source to a customer
Testing SEPA Direct Debit
See Testing standard payment methods for testing instructions.
Last updated