# SEPA Direct Debit

> Create one-time SEPADD payments with customer details and an IBAN, redirect customers to accept the debit mandate, and distinguish transaction success from receipt of funds.

## Basic information

The customer accepts or rejects the debit mandate on the payment provider’s page. This flow authorizes a debit from the customer’s bank account; the customer does not manually transfer money to you.

- Integration path: [Direct API](/payments/versions/v2/online-payments/api)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `SEPADD`

| Customer country/region | Order currency |
| --- | --- |
| 🇦🇹 AT, 🇧🇪 BE, 🇩🇪 DE, 🇪🇸 ES, 🇫🇷 FR, 🇬🇷 GR, 🇮🇪 IE, 🇮🇹 IT, 🇱🇺 LU, 🇱🇻 LV, 🇵🇱 PL, 🇵🇹 PT, 🇷🇴 RO, 🇸🇪 SE, 🇸🇰 SK | EUR |

The customer country/region is the `billingInformation.country` value in the payment request.

This guide covers enabled configurations for customers whose bank accounts are held in the European Economic Area (EEA). You collect the account holder’s details and International Bank Account Number (IBAN) before creating the payment, as described in [Before you begin](#before-you-begin). Your merchant account and application must be enabled for the relevant country and EUR orders. Use the customer’s actual country when checking availability. The flow covers a single debit, not a reusable subscription mandate or recurring billing.

## Before you begin

Complete [Setup](/payments/versions/v2/get-started/setup) and confirm with Onerway that this SEPADD flow is enabled for your merchant and application. Confirm transaction limits, the payment validity period, settlement and funds-confirmation arrangements, and the method-specific test procedure. Amount formatting follows [Currency and amount validation](/payments/versions/v2/get-started/currency-and-amount).

Before integrating, confirm with Onerway whether the enabled configuration requires an additional account-holder address and how it must be supplied. This confirmation also applies when the customer and bank account are within the EEA.

Collect the account holder’s actual first and last names, email, and valid IBAN. Use the customer’s actual billing country and address. The bank account must be within the EEA for this flow. Configure your notification and return URLs, and store the mapping between your order and the Onerway identifiers.

## Start the payment with the Direct API

1. Check [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods) for the current order. After the customer selects this method and supplies the required details, call [Create direct transaction](/payments/versions/v2/api-reference/endpoints/direct-create-transaction) from your server with `productType=LPMS`, `subProductType=DIRECT`, `txnType=SALE`, and `paymentMode=WEB`.
2. Encode [`lpmsInfo`](/payments/versions/v2/api-reference/endpoints/direct-create-transaction#request-lpmsInfo) as a JSON string containing `lpmsType=SEPADD` and `iBan` for the account to be debited. Submit the account holder’s name in `billingInformation.firstName` and `lastName`, and their email in `billingInformation.email`.
3. Follow the remaining API requirements for billing, shipping, and product details. Encode `billingInformation` and `shippingInformation` as JSON strings, including the required email and country for each. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information in [`txnOrderMsg`](/payments/versions/v2/api-reference/endpoints/direct-create-transaction#request-txnOrderMsg). Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up to `orderAmount`.<br />Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method with `SEPADD`, add `lpmsInfo.iBan`, and supply the actual account holder, address, and order details for the enabled country and EUR order. Do not add card details or subscription parameters to this one-time debit request.
4. Store the returned `paymentId` and `transactionId`. When `status=R` and `actionType=RedirectURL`, redirect the customer’s browser to `redirectUrl`. The shared response example “Redirect local payment response (illustrative)” shows this shape. For other actions or states, follow [Local payment integration](/payments/versions/v2/online-payments/payment-methods/local-payment-methods#handle-the-customer-action). Do not repeatedly create the same order while waiting.

See [Request authentication](/payments/versions/v2/get-started/authentication) for request authentication. The debit mandate is part of this `SALE` flow; do not switch to a card pre-authorization transaction.

## Customer mandate and transaction result

On the provider’s page, the customer reviews the debit details and accepts or rejects the mandate. The payment provider collects and stores the mandate and sends the pre-notification for the debit. Reaching this page or returning to your site does not confirm the transaction result.

Record the result using a signature-verified [payment result webhook](/payments/versions/v2/api-reference/webhooks/payment-result). If no notification has arrived or you need to check the result, call [Query payments](/payments/versions/v2/api-reference/endpoints/query-payments) with the stored `paymentId`. For verification, acknowledgement, idempotency, and query fallback, see [Webhooks](/payments/versions/v2/get-started/webhooks).

`status=S` means that Onerway has recorded the transaction as successful. For SEPADD, this result can arrive before the funds have been received; it does not by itself confirm receipt of funds or completion of settlement. Confirm funds and fulfill the order under the arrangements agreed with Onerway. A debit can still be returned or charged back after funds are received.

If the customer rejects the mandate, closes the page, or leaves the flow incomplete, keep the order aligned with the server notification or query result. Do not infer success from the customer’s return or create a replacement debit without checking the existing payment.

## Refunds and disputes

Confirm the enabled refund capabilities, request deadlines, and handling of returned debits with Onerway. If refunds are enabled, follow [Refunds](/payments/versions/v2/online-payments/scenarios/refunds) and process the refund result; acceptance of a refund request is not a successful refund. Handle customer bank chargebacks separately from merchant-initiated refunds.

## Testing and go-live

Confirm the SEPADD test environment, account details, and mandate procedure with Onerway, then follow the general process in [Sandbox testing](/payments/versions/v2/get-started/testing). Card test data is not a substitute for SEPADD test account details.

1. Test each enabled customer country you intend to use with a EUR order, the required account holder details, and an IBAN for an account held in the EEA. Verify that the returned URL opens the mandate page and shows the expected debit details.
2. Test mandate acceptance and rejection, closing the page, and returning before a final result. Confirm that your application handles the actual response and never treats a return as payment success.
3. Verify notification signatures, acknowledgements, duplicate-notification idempotency, and query fallback. For the accepted-mandate case, retain the notification and acknowledgement for the same order and query it to check that the results agree.
4. Verify receipt of funds, refunds, and returned debits separately using the agreed evidence and procedures. Mandate and transaction-status tests alone do not verify funds arrival. Before going live, check production enablement, notification and return URLs, limits, and validity periods.
