SOFORT

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.

特徴 #

通貨の処理EUR,GBP,CHF
決済通貨ユーロ
払い戻し
一部払い戻し
複数回の一部払い戻し
チャージバック

統合方式 #

支払い方法の列挙値: sofort

There is integration method for SOFORT

  1. ダイレクトAPI
  2. チェックアウト

ダイレクト API #

統合の方法 #

直接APIを統合するには、PaymentIntentを作成し、1つのステップでURLを取得することができます。以下はペイメントインテントを作成するデモです:

PaymentIntentの作成

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.

リクエスト

{
    "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"
}

応答

{
    "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"
}

チェックアウト #

支払いの流れ #

  1. Customer selects ShopeePay from the list of payment methods available and clicks on the Pay botton
output.png
  1. Customers will be redirected to ShopeePay’s page to select bank.
output (1).png
  1. Customers approve payment via online banking.
下载.png
下载 (2).png
  1. Confirm the transaction by providing the TAN.
下载 (1).png

セッションの作成 #

リクエスト

{
    "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
        }
    ]
}

応答

{
    "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"
}

次のステップ #

必要に応じて、統合にさらに機能を追加することができます。

ウェブフックの作成 #

統合が自動的にリアクションをトリガーできるように、WooshPayアカウントのイベントをリッスンします。enabled_eventsとurlにフォーカスしたWebhookを作成します。

払い戻しの作成 #

顧客に資金を返済するために返金を作成します。部分払い戻しを行うこともできますが、すべての支払い方法が対応しているわけではありません。部分払い戻しとは、元の取引金額の一部のみを払い戻すことです。

どのようなお気持ちですか?
2023年8月9日更新