Accept an APM
APM payment requests can be made through our Gateway API. Payments requests are asynchronous so in response to a
successful payment request you will receive a pending status, a payment id and an 'authorize' URL where you can
redirect the end user to complete any required authorization step. You will then receive notifications of events
relating to this payment through webhooks or by calling our GET endpoint.
Routes will be set up for you so you can direct your payments to specific acquirers as you see fit.
If you don't want to use our intelligent transaction routing engine you can include the id of the specific route you
wish to use in the route.id property.
The current functionality of our payment processing is straight-sale only, meaning all payment requests will be auto-captured.
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.
APM payments can occasionally decline or fail after a captured status has been communicated. If that occurs, Paytently will send a webhook to communicate the new updated failed or declined status.
We currently support the following APMs:
| APM | Supported currencies | Supported countries |
|---|---|---|
| Bancontact | EUR | BEL |
| Multibanco | EUR | PRT |
| Blik | PLN | POL |
| P24 | EUR, PLN | POL |
| EPS | EUR | AUT |
| MyBank | EUR | ITA, BEL, PRT, ESP |
| PayU | PLN, CZK | POL, CZE |
| Trustly | CZK, EUR, DKK, NOK, SEK, GBP | AUT, CZE, DEU, DNK, ESP, EST, FIN, GBR, LTU, LVA, NLD, NOR, SWE |
| Rillpay Cashier | All (excluding USD, JPY, NOK, IRR, MMK, KPW, CUP, RUB, SYP, UAH) | All (excluding USA, JPN, NOR, DEU, IRN, MMR, PRK, CUB, RUS, SYR, UKR) |
| MB Way | EUR | PRT |
| iDEAL | EUR | NLD |
| Paysafe Card | ARS, AUD, BGN, CAD, CHF, CZK, DKK, EUR, GBP, HUF, MXN, NOK, NZD, PEN, PLN, RON, SEK, TRY, USD, UYU | All |
| Safello Cashier | EUR | SWE |
APMs are only accessible via certain channels. Please contact integration@paytently.com to ask for availability.
- Production
- Sandbox
POST https://api.paytently.io/payments
POST https://sandbox.api.paytently.io/payments
Request:
- Bancontact
- Multibanco
- Blik
- P24
- MyBank
- PayU
- EPS
- Trustly
- Rillpay Cashier
- MB Way
- iDEAL
- Paysafe Card
- Safello Cashier
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Jansen",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "bancontact",
},
"billing_address": {
"line_one": "Stationsplein 5",
"city": "Brugge",
"postal_code": "8000",
"country": "BEL"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "João",
"last_name": "da Silva",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "multibanco",
},
"billing_address": {
"line_one": "Av. Infante D. Henrique 9876",
"city": "Porto",
"postal_code": "4100-999",
"country": "PRT"
},
"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"
}
}'
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": "PLN",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Kowalski",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "blik",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Warszawa",
"postal_code": "00-024",
"country": "POL"
},
"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"
}
}'
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": "PLN",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Nowak",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "p24",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Warszawa",
"postal_code": "00-024",
"country": "POL"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Nowak",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "my_bank",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Rome",
"postal_code": "00-024",
"country": "ITA"
},
"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"
}
}'
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": "PLN",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Nowak",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "pay_u",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Warszawa",
"postal_code": "00-024",
"country": "POL"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Nowak",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "eps",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Wien",
"postal_code": "00-024",
"country": "AUT"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Nowak",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "trustly",
},
"billing_address": {
"line_one": "Aleje Jerozolimskie 54",
"city": "Wien",
"postal_code": "00-024",
"country": "AUT"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Pierre",
"last_name": "Dupont",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "rillpay_cashier",
},
"billing_address": {
"line_one": "Rue de Paris 54",
"city": "Paris",
"postal_code": "00-024",
"country": "FRA"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "João",
"last_name": "da Silva",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "mb_way",
},
"billing_address": {
"line_one": "Av. Infante D. Henrique 9876",
"city": "Porto",
"postal_code": "4100-999",
"country": "PRT"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Jan",
"last_name": "Jansen",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "ideal",
},
"billing_address": {
"line_one": "Steenweg 6",
"city": "Utrecht",
"postal_code": "3511",
"country": "NLD"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "John",
"last_name": "Smith",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "paysafe_card",
},
"billing_address": {
"line_one": "80 Queens Road",
"city": "Manchester",
"postal_code": "M63X 7TH",
"country": "GBR"
},
"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"
}
}'
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": "EUR",
"customer": {
"id": "customer123",
"first_name": "Nils",
"last_name": "Svensson",
"birth_date": "1991-06-03",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"method": {
"type": "safello_cashier",
},
"billing_address": {
"line_one": "Krukmakargatan 35",
"city": "Stockholm",
"postal_code": "11851",
"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"
},
"authorize": {
"href": "https://sandbox.payredirect.io/authorize/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"
}