Save SEPA Direct Debit details for future payments
Learn how to save payment method details for future SEPA Direct Debit payments.
You can use Checkout in setup mode to collect SEPA Direct Debit payment details in advance, and determine the final amount or payment date later. Use it to:
- Save payment methods to a wallet to streamline future purchases
- Collect surcharges after fulfilling a service
- Start a free trial for a subscription
- Saving payment methods to a wallet to streamline future purchases
- Collecting surcharges after fulfilling a service
- Starting a free trial for a subscription
Note
SEPA Direct Debit is a delayed notification payment method, which means that funds are not immediately available after payment. A payment typically takes 5 business days to arrive in your account.
Create or retrieve a CustomerServer-side
To reuse a SEPA Direct Debit payment method for future payments, it must be attached to a Customer.
Create a Customer object when your customer creates an account with your business. Associating the ID of the Customer object with your own internal representation of a customer enables you to retrieve and use the stored payment method details later.
Create a new customer or retrieve an existing customer to associate with this payment. Include the following code on your server to create a new customer.
Set up future payments
Note
This guide builds on the foundational set up future payments Checkout integration.
Use this guide to learn how to enable SEPA Direct Debit – it shows the differences between setting up future payments for cards and using SEPA Direct Debit.
Enable SEPA Direct Debit as a payment method
When creating a new Checkout Session, you need to add sepa_
to the list of payment_
.
Test your integration
You can test your integration using the IBANs below. The payment method details are successfully collected for each IBAN but exhibit different behavior when charged.