Prompt
How do I accept SEPA payments with a payment API?
Latest observation
To accept SEPA payments with a payment API, you usually need to support one of two SEPA methods:
- SEPA Credit Transfer (SCT) — customer sends a bank transfer to your IBAN.
- SEPA Direct Debit (SDD) — you pull funds from the customer’s bank account after they authorize it.
Most payment APIs support one or both via bank transfer / bank debit products. Here’s the practical way to do it.
1) Decide which SEPA flow you need
A. SEPA Credit Transfer
Use this if customers will pay by bank transfer.
Typical flow:
- Your API creates a payment intent/order
- The API returns your bank details or a virtual IBAN/reference
- Customer sends a transfer from their bank
- Your system detects the incoming transfer via webhook or bank reconciliation
- You mark the order as paid
Best for:
- B2B invoices
- Higher-value payments
- Customers comfortable with bank transfers
B. SEPA Direct Debit
Use this if you want to collect recurring or one-off payments automatically from a customer’s bank account.
Typical flow:
- Customer enters IBAN and gives mandate consent
- You create a mandate through the API
- You submit a debit request
- Funds are collected later
- Webhooks notify you of success/failure/chargebacks
Best for:
- Subscriptions
- Utility billing
- Recurring invoices
2) Choose a payment provider that supports SEPA
Examples of providers that often support SEPA:
- Stripe
- Adyen
- Mollie
- GoCardless
- Checkout.com
- PayPal/Braintree in some regions/use cases
- Regional PSPs and open banking providers
When comparing APIs, check:
- SEPA Credit Transfer support
- SEPA Direct Debit support
- Supported countries/currencies
- Webhook reliability
- Mandate handling
- Refund/dispute handling
- Settlement timing
- Virtual IBAN / reference matching support
3) Set up your account and compliance
You’ll usually need:
- Business verification / KYC
- A business bank account
- Legal entity details
- SEPA creditor identifier for direct debit, if applicable
- Mandate text and consent flow for direct debit
- Clear refund/chargeback policy
For SEPA Direct Debit, compliance is important:
- Customer must explicitly authorize the mandate
- You must store mandate evidence
- You need to provide pre-notification in many cases
- There are refund rights and return windows
4) Integrate the API flow
If using SEPA Credit Transfer
Your integration usually looks like this:
- Create a payment/order
- Get bank transfer instructions
- IBAN
- Beneficiary name
- Reference code
- Amount
- Show instructions to customer
- Listen for payment confirmation
- webhook
- bank statement matching
- provider callback
- Fulfill the order
Example logic:
POST /payments
→ returns:
iban: DE...
reference: INV-12345
amount: 49.99 EUR
If using SEPA Direct Debit
Your integration usually looks like this:
- Collect customer IBAN
- Collect mandate consent
- Create mandate/customer bank account token
- Create debit payment
- Handle webhook events
- submitted
- pending
- paid
- failed
- refunded/returned
Pseudo-flow:
POST /customers/{id}/bank-accounts
POST /mandates
POST /payments
5) Handle webhooks and payment states
This is critical. Don’t rely only on the API response.
You should handle states such as:
- pending
- succeeded / settled
- failed
- reversed
- returned
- disputed
- refunded
Recommended approach:
- Update your internal order state only after webhook confirmation
- Make webhook handlers idempotent
- Reconcile payments periodically against your provider dashboard or exports
6) Build for SEPA-specific details
For SEPA Credit Transfer
- Payments are in EUR
- Ensure you generate a unique payment reference
- Support delayed settlement
- Match partial payments if allowed by your provider
- Handle overpayments/underpayments
For SEPA Direct Debit
- Require explicit mandate acceptance
- Store mandate ID and consent timestamp
- Respect cutoff times and collection schedules
- Be prepared for returns and refunds
- Handle first debit vs recurring debit rules if your provider distinguishes them
7) Test before going live
Use the provider’s sandbox to test:
- Successful payment
- Failed payment
- Duplicate webhook delivery
- Chargeback/return
- Delayed settlement
- Partial payment
- Mandate cancellation
Create automated tests for:
- webhook signature verification
- idempotency
- payment state transitions
8) Minimal implementation checklist
- Choose SCT or SDD
- Pick a provider with SEPA support
- Complete business verification
- Create payment/milestone objects in your backend
- Show bank details or collect IBAN + mandate consent
- Implement webhook listener
- Reconcile payments
- Handle refunds/returns/chargebacks
- Test in sandbox
- Go live
Example: which one should you use?
- Selling products online and want bank transfer checkout? → SEPA Credit Transfer
- Monthly subscription billing? → SEPA Direct Debit
- Invoice payments for EU businesses? → SEPA Credit Transfer
- Utilities/telecom/billing? → SEPA Direct Debit
If you want, I can also give you:
- a Stripe SEPA example,
- a GoCardless SEPA direct debit example, or
- a generic API integration flow in Node.js/Python.