Open Banking

To make payments through open banking, the Create request is used. The response to the request contains data necessary for making the payment.

Example of response data:

{
    "orders": [
        {
            "id": "93792353819537534",
            ...
            "alternative_payments": [
                {
                    "image": "<https://checkout.example/img/button_image.svg>",
                    "provider": "OpenBanking",
                    "url": "<https://checkout.example/v2/api/open_banking/start_session/95094499276523504>"
                }
            ]
            ...
        }
    ]
}

https://checkout.example/v2/api/open_banking/start_session/95094499276523504 - user redirect link.

Next, Merchant should display the button to the customer, which will spawn a POST request to the URL provided.

Example HTML code for displaying the button:

<form action="<https://checkout.example/v2/api/open_banking/start_session/95094499276523504>" method="POST">
    <div class="box-button-wrapper"><button type="submit" class="box-button box-open-banking-btn"><img
                src="<https://checkout.example/img/button_image.svg>" alt=""></button></div>
</form>

After clicking the button, the user is redirected to the bank's page in order to proceed the payment.

If the order is still in processing after the user is redirected back to the application, it will be completed once a webhook from the provider is received.

Last updated