Accept an Open Banking payment
Open banking payment requests can be initiated through our Gateway API. Routes will be configured for you to direct payments to specific settlement accounts. Payment requests are asynchronous, meaning that a successful payment request will return a pending status and a payment id.
The API will return an open banking URL, which the end customer must be redirected to. This URL will display a payment form listing supported bank account issuers for the customer’s region. The region is determined automatically using a combination of currency and IP address of the device accessing the payment page.
Once the customer selects their account issuer, they will be prompted to log in through either the bank’s login page or a third-party authentication app, depending on the issuer and device type. The customer will then log in, select the account for payment, and authorize the transaction. After completing this step, the customer will be redirected to the success or failure URL provided in the payment request.
You can track events related to this payment through webhooks or by calling our GET payment endpoint.
Payment amounts are in minor units, for example a payment for €1.20 should be sent as 120.
Details on required fields and validation can be found in our Open API specification.
The open banking payment method does not support refunds.
In rare cases, a payment may move to a declined status after initially returning a captured status due to the nature of open banking payments.
- Production
- Sandbox
POST https://api.paytently.io/payments
POST https://sandbox.api.paytently.io/payments
Request:
curl --location 'https://sandbox.api.paytently.io/payments'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer token_here'
--data-raw '{
"reference": "ord123",
"amount": 100,
"currency": "SEK",
"customer": {
"id": "customer123",
"first_name": "Nils",
"last_name": "Svensson",
"nationality": "SWE",
"contact": {
"phone": {
"country_code": "46",
"number": "1234567890"
},
"email": "email@example.com"
}
},
"method": {
"type": "open_banking"
},
"billing_address": {
"line_one": "Examplerskajen",
"city": "Helsingborg",
"postal_code": "252 67",
"country": "SWE"
},
"device_ip_address": "123.123.123.123",
"urls": {
"authorize": {
"success": "https://success.com",
"failure": "https://failure.com"
},
"webhook": "https://example.com/paytently/webhooks",
"merchant_website": "https://example.com"
},
"route": {
"id": "rou_12345"
},
"metadata": {
"key": "value"
}
}'
Response:
- 202
- 400
- 422
- 500
{
"id": "pay_12345",
"status": "pending",
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
}
}
}
{
"trace_id": "12345",
"errors": [
{
"property": "metadata",
"code": "malformed_request",
"reason": "",
"docs": "https://docs.paytently.io/api/reference"
}
]
}
{
"trace_id": "12345",
"errors": [
{
"property": "reference",
"code": "reference_invalid",
"reason": "reference must not be more than 64 characters",
"detail": "Invalid length: 70",
"docs": "https://docs.paytently.io/api/reference"
},
{
"property": "reference",
"code": "reference_invalid",
"reason": "reference must only contain letters, numbers and accepted special characters: _-",
"detail": "Invalid characters: @",
"docs": "https://docs.paytently.io/api/reference"
}
]
}
{
"title": "Server error",
"status": 500,
"trace_id": "12345"
}