Learn more about SOFORT
SOFORT is a popular online banking payment method in Europe with high usage in Germany, Austria, Switzerland and Belgium. 85 million people use SOFORT, making it a must-have for any business wanting to operate in Europe.
Caractéristiques #
Traitement des devises | EUR,GBP,CHF |
---|---|
Devises de règlement | EUR |
Remboursements | ✅ |
Remboursements partiels | ✅ |
Remboursement partiel multiple | ❌ |
Répétition de la dette | ❌ |
Méthode d'intégration #
Valeurs de l'énumération des méthodes de paiement : sofort
There is integration method for SOFORT
- API directe
- Sortie de caisse
Direct API #
Comment s'intégrer #
Pour une intégration API directe, vous pouvez créer un PaymentIntent et obtenir l'url en une seule étape. Voici la démonstration de la création d'une intention de paiement :
A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add sofort to the list of payment method types.
Demande
{
"amount": 2000,
"currency": "EUR",
"confirm": true,
"payment_method_data": {
"type": "sofort",
"billing_details": {
"address": {
"country": "DE"
},
"firstName": "Anthony",
"lastName": "VDK"
}
},
"return_url": "https://wooshpay.com"
}
Réponse
{
"id": "pi_1670640606184996864",
"object": "payment_intent",
"created": 1687146734000,
"livemode": false,
"currency": "EUR",
"amount": 2000,
"status": "requires_action",
"client_secret": "pi_1670640606184996864_secret_kcK3jYnN2GqGRsrJdFPoqDSR",
"next_action": {
"type": "redirect_to_url",
"sofort_handle_redirect": {
"url": "https://r3.girogate.de/ti/sofortueberweisungmixed?tx=2090826721&rs=8Vz3wcb3qZEEluexd4A9bAzkL7Z9QwKV&cs=868f629696faa261e32b8028f61def5bcce9a7d66e9800987c8a14a4320b74b7"
}
},
"payment_method_types": [
"sofort",
],
"confirmation_method": "automatic",
"return_url": "https://wooshpay.com",
"payment_method": "pm_1670640606088527872",
"capture_method": "automatic"
}
Sortie de caisse #
Flux de paiement #
- Customer selects ShopeePay from the list of payment methods available and clicks on the Pay botton
- Customers will be redirected to ShopeePay’s page to select bank.
- Customers approve payment via online banking.
- Confirm the transaction by providing the TAN.
Créer une session #
Demande
{
"cancel_url": "www.wooshpay.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types": [
"sofort"
],
"line_items": [
{
"price_data": {
"currency": "GBP",
"product": null,
"unit_amount": 20000,
"product_data": {
"name": "apple"
},
"billing_scheme": "testscheme",
"lookup_key": "test_lookup_key"
},
"quantity": 1
}
]
}
Réponse
{
"id": "cs_1680928905768206336",
"object": "checkout.session",
"created": 1689599656000,
"livemode": false,
"currency": "GBP",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkouttest.wooshpay.com/pay/cs_test_1680928905768206336?key=pk_test_NTE2Njg1MDgwNDUzOTY4MDc2ODAxOm9Oa3pjN043U2dYWE84VVhGZmF4cThvTTE2ODY2MzgyOTYzMjU",
"cancel_url": "www.wooshpay.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1680928905801760768",
"object": "item",
"currency": "GBP",
"description": "apple",
"price": {
"id": "price_1680928905814343680",
"object": "price",
"created": 1689599656000,
"livemode": false,
"active": false,
"currency": "GBP",
"product": {
"id": "prod_1680928905826926592",
"object": "product",
"created": 1689599656000,
"livemode": false,
"active": false,
"name": "apple",
"updated": 1689599656000
},
"type": "one_time",
"unit_amount": 20000,
"billing_scheme": "per_unit",
"lookup_key": "test_lookup_key"
},
"quantity": 1,
"amount_subtotal": 20000,
"amount_total": 20000
}
]
},
"payment_intent": "pi_1680928905998893056",
"payment_method_types": [
"sofort"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 20000,
"amount_total": 20000,
"billing_address_collection": "auto",
"expires_at": 1689686055943,
"payment_link": "",
"client_secret": "pi_1680928905998893056_secret_zV5ZpRdTfntPMBcPWp8tSAir"
}
Prochaine étape #
Vous pouvez ajouter d'autres fonctionnalités à votre intégration en fonction de vos besoins.
Créer un Webhook #
Écoutez les événements sur votre compte WooshPay afin que votre intégration puisse déclencher automatiquement des réactions. Créez un webhook qui se concentre principalement sur enabled_events et url.
Créer un remboursement #
Créez un remboursement pour restituer des fonds à votre client. Vous pouvez également effectuer des remboursements partiels, mais ils ne sont pas pris en charge par toutes les méthodes de paiement. Un remboursement partiel consiste à ne rembourser qu'une partie du montant de la transaction initiale.