SEPA Direct Debit
Server-Side Implementation
Important
Your integration may be impacted by upcoming certificate changes. Visit our best practices guide to learn more.
Creating transactions
Creating a SEPA Direct debit transaction is the same as creating any other transaction with a nonce
or a
vaulted payment method
. Be sure to pass the device data you collected on the client side when you create the transaction.
Optional fields
order_id
- a merchant-generated ID associated with the transactiondescriptor_name
- a descriptor that will show in the user's bank statement
- Java
TransactionRequest request = new TransactionRequest()
.amount(request.queryParams("amount"))
.paymentMethodNonce(nonceFromTheClient)
.merchantAccountId("EUR-merchant-account")
.orderId("Order 1234")
.descriptorName("Merchant ABC")
.deviceData(deviceData)
.options()
.submitForSettlement(true); // Required
Result<transaction> saleResult = gateway.transaction().sale(request);
if (result.isSuccess()) {
Transaction transaction = result.getTarget();
System.out.println("Success ID: " + transaction.getId());
} else {
System.out.println("Message: " + result.getMessage());
}
Currency support
SEPA Direct Debit only supports EUR currency.
SEPA Direct Debit webhooks
You can set up webhooks to notify you of changes in status to SEPA Direct Debit transactions.
- See the webhooks guide for details on how to configure webhooks in general
- See the Transaction webhooks reference for details on the specific notifications available for sales and refunds
Next Page: →