SEPA Direct Debit
Accept SEPA Direct Debit payments in your online store.
SEPA Direct Debit is a standardized payment method facilitating bank-to-bank transactions within the European Union. Use the emerchantpay API to accept SEPA Direct Debit as a payment method across the supported emerchantpay’s payment integrations.
|Bank transfer||SEPA countries|
To proceed with this solution, you must have an emerchantpay merchant account. Apply for a merchant account by filling out and submitting this contact form.You will be assigned an emerchantpay Account Manager, who will provide you with credentials and assist you with any of emerchantpay’s payment solutions.
To integrate with SEPA Direct Debit, connect to the emerchantpay Genesis gateway using the emerchantpay API. You should have a working knowledge of web programming languages, HTTP methods in XML and JSON formats, and UTF8 encoding. Use the Genesis SDK libraries with code samples to integrate with the gateway in a range of languages.
For a solution that requires less development overhead, accept SEPA Direct Debit payments through the emerchantpay Web Payment Form (WPF). Contact your Account Manager and tell them you want to accept SEPA Direct Debit through the WPF, and refer to the WPF API.
To submit a payment using SEPA Direct Debit, create a payment request to the emerchantpay Genesis payment gateway. Specify sdd_sale as the
Example of passing a SEPA Direct Debit transaction request:
<payment_transaction> <transaction_type>sdd_sale</transaction_type> <transaction_id>119643250547501c79d8295</transaction_id> <usage>40208 concert tickets</usage> <remote_ip>245.253.2.12</remote_ip> <amount>100</amount> <currency>EUR</currency> <iban>DE09100100101234567891</iban> <bic>PBNKDEFFXXX</bic> <billing_address> <first_name>Travis</first_name> <last_name>Pastrana</last_name> <country>DE</country> </billing_address> </payment_transaction>’
You will receive a Success or Error response to your payment request.
Example of a Success response:
<payment_response> <transaction_type>sdd_sale</transaction_type> <status>approved</status> <mode>live</mode> <transaction_id>119643250547501c79d8295</transaction_id> <unique_id>44177a21403427eb96664a6d7e5d5d48</unique_id> <technical_message>Transaction successful!</technical_message> <message>Transaction successful!</message> <timestamp>2023-03-06T16:33:10Z</timestamp> <descriptor>Descriptor one</descriptor> <amount>100</amount> <currency>EUR</currency> <sent_to_acquirer>true</sent_to_acquirer> </payment_response> <
redirect_urlto redirect your customer to authorise the payment with SEPA Direct Debit. See the emerchantpay API for the complete list of SEPA Direct Debit response parameters and code samples.
Because the SEPA Direct Debit payment transaction is asynchronous, the result of your customer’s payment is sent as a separate HTTP POST notification from the gateway to the
notification_url that you supplied with the transaction request.
Example of a notification for a SEPA Direct Debit transaction:
“transaction_id”: “tm_api_1678195297” “terminal_token”: “e4de7c9d4ea4bccea3cac90190e2ea0be8ad7610” “unique_id”: “52775aed3ee5776c906aeba74da69612” “transaction_type”: “sdd_sale” “status”: “error” “signature”: “3bbdb69c48739a41eabf7acb6d95d23a1135d558” “amount”: “100” “card_number”: “…” “card_holder”: “Travis Pastrana” “customer_email”: “firstname.lastname@example.org” “customer_phone”: “+498563698777” “first_name”: “Travis” “last_name”: “Pastrana” “address1”: “Berlin” “zip_code”: “1000” “city”: “Berlin” “country”: “DE” “bank_identifier_code”: “PBNKDEFFXXX” “invoice_amount”: “100” “mandate_id”: “tm_api_1678195297” “iban”: “DE86100000001234400013”
statusfield provides you with information on the outcome of the transaction. See Transaction States for more information about transaction statuses.
signature field to verify that the notification has been sent by the Genesis gateway. Each session signature is generated by combining the
unique_id of the transaction and your API password, and generating a SHA-1 hash function of the combined string.
Notification signature examples:
signature = SHA-1 hash value of
After you have verified the notification state and validity, render an XML page containing the transaction’s unique id to acknowledge that you have received the notification.Example of a notification reply you use to confirm a notification:
<?xml version=”1.0″ encoding=”UTF-8″?> <notification_echo> <unique_id>3f760162ef57a829011e5e2379b3fa17</unique_id> </notification_echo>
Before you can accept live payments, you must test your integration in the emerchantpay staging environment.
- Add an item to your cart in your online store.
- Proceed to the checkout page and check out using SEPA Direct Debit.
- Follow the redirect link in the response.
- In the payment simulator, follow the instructions to simulate a transaction.
- Complete the order and verify that you are redirected to the order confirmation page.
- Log in to Genesis.
- In the navigation menu, go to Payment transactions.
- Verify that the transaction appears at the top of the list and is successful.
After you have successfully tested your SEPA Direct Debit integration, you are ready to move to the production environment and accept live payments. Contact your emerchantpay Account Manager to get your login credentials for the Genesis production environment.
You are now ready to accept live payments using SEPA Direct Debit.