概述 #
Accepting SEPA Direct Debit payments on your website consists of:
- Creating an object to track a payment;
- Collecting payment method information;
- Mandate acknowledgment;
- Submitting the payment to Stripe for processing.
WooshPay uses this payment object, the PaymentIntent, to track and handle all the states of the payment until the payment completes.
SEPA direct debit transactions have a limit of 1,000 EUR each.
整合方法 #
跳转收银台 #
Determine compatibility #
To support SEPA Direct Debit payments in Checkout, Prices for all line items must be expressed in Euro (currency code eur).
可用的国家代码 | |
---|---|
EU countries | AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE |
EEA Countries | IS, LI, NO |
Countries that have bilateral agreements with EU | AD, SM, MC, VA |
Other SEPA-supporting countries (supported EUR-denominated accounts only) | PF, TF, GI, GG, IM, JE, BL, PM, CH, GB, WF |
———————– | |
支持的货币 | eur |
Presentment currencies | eur |
Accept a payment #
Use this guide to learn how to enable SEPA Direct Debit—it shows the differences between accepting a card payment and using SEPA Direct Debit.
Enable SEPA Direct Debit as a payment method
创建新的结账会话时,您需要
- Add sepa_debit to the list of payment_method_types.
- Make sure all your line_items use the eur currency.
整合方法 #
服务器到服务器 #
创建 PaymentIntent #
PaymentIntent 是一个对象,它代表了您向客户收款的意图,并跟踪付款流程的生命周期的每个阶段。
首先,在服务器上创建 PaymentIntent,并指定要收取的金额和欧元货币(SEPA 直接借记不支持其他货币)。
如果您已经使用 Payment Intents API 进行了集成,请将 sepa_debit 添加到 PaymentIntent 的支付方式类型列表中。
要求
{
"amount": 2000,
"currency": "EUR",
"confirm": true,
"payment_method_options": {
"sepa": {
"iban": "DE12500105170648489890"
}
},
"payment_method_data": {
"type": "sepa",
"billing_details": {
"address": {
"country": "DE"
},
"email": "john.doe@fake.id",
"name": "John Doe"
}
},
"return_url": "https://wooshpay.com"
}
Test your integration #
Wooshpay provides test numbers you can use to make sure your integration is ready for production.
Use the SEPA Direct Debit test numbers when testing your Checkout integration with SEPA Direct Debit.
Test IBAN: DE12500105170648489890