Bancontact (new)

Learn how to accept payments wtih Bancontact.

Bancontact is the most popular online payment method in Belgium, with over 15 million cards in circulation. Customers use a Bancontact card or mobile app linked to a Belgian bank account to make online payments that are secure, guaranteed, and confirmed immediately.

In order to pay with Bancontact, customers are redirected to the Bancontact website or mobile app to authorize the payment and then return to your website where there is an immediate notification about the success or failure of the payment.

Payment typeCard
MarketsBelgium
Customer currenciesEUR
Processing currenciesEUR
RefundsYes

Step 1. Make a transaction request

From your server, make a POST

https://service-sandbox.apmgw-dev.payabl.tech/apm_gw/payment_preauthorize
https://api.apmgw-prod.payabl.tech/v1/payment_preauthorize

Request Type: POST
Content-Type: application/x-www-form-urlencoded

Request example:

curl --location 'https://service-sandbox.apmgw-dev.payabl.tech/apm_gw/payment_preauthorize' \
  -d merchantid='apm_test' \
  -d amount='20.00' \
  -d currency='EUR' \
  -d payment_method='203' \
  -d bankcountry='BEL' \
  -d accountname='Jan Peeters' \
  -d notification_url='https://project-lkkw1.vercel.app/api/accept/b1429c9d-9dc4-4edd-b122-df31d4af8782' \
  -d url_return='https://project-lkkw1.vercel.app/api/accept/b1429c9d-9dc4-4edd-b122-df31d4af8782' \
  -d firstname='Jan' \
  -d lastname='Peeters' \
  -d orderid='ORDER-14001' \
  -d signature='d542ef28f28bc3c4b934a8ddd22098997b358632'

🚧

Public Sandbox information

Do not use your personal email address, Order ID with sensitive information, real customer details and credit card data in the public Sandbox. For email field you may use [email protected].

To complete the payment, you need to redirect the customer to the correct URL in the response.

Raw Response:

transactionid=4882196928951026956
transid=4882196928951026956
status=2000
errormessage=pending
errmsg=pending
amount=20.00
price=20.00
currency=EUR
orderid=Payabl-Test
payment_method=203
redirect_url=https://mp8tn4c192.execute-api.eu-central-1.amazonaws.com/default/authenticator.html?payment-charge-id=charge_P2NtLkzcUTYQo0w8hzmPx
📘

If status=2000, the payment has been successfully initialized. To complete the payment, redirect the customer to redirect_url.

Raw Failed Response:

transactionid=4882196928951026956
transid=4882196928951026956
status=-6150
errormessage=Not+supported+currency
errmsg=Not+supported+currency
amount=20.00
price=20.00
currency=PLN
orderid=Payabl-Test
payment_method=201

Step 2. Handle the redirect

📘

Redirection to url_return does not confirm that the transaction is successful. Always check the transaction via notification_url or use the diagnose interface to get the final status of the transaction.

After the customer completes the payment on the provider side, they will be redirected to your url_success or url_failed.

Successful Redirect Response:

transactionid=4882196928951026956
timestamp=1778079086
orderid=Payabl-Test
payment_method=203
errormessage=
errorcode=0
type=capture
amount=20.00
currency=EUR
payment_state=credited
security=718ee443dee42deb530edd7ae05d976ddcd732601da80038ee5469a508919865

Failed Redirect Response:

transactionid=4882196928951026956
timestamp=1776073238
orderid=Payabl-Test
payment_method=203
errormessage=Timeout
errorcode=203004
type=order
amount=20.00
currency=EUR
payment_state=not_credited
security=44dda4674341a358c1cdf39a40dda1ed1288e5c1e13e42acd0e9b72e4ce3c7ec

payment_state values:

ValueTransaction Status
not_credited_yetCapture - Accepted
creditedCapture - Successful
not_creditedCapture - Failed

POST Callbacks

Notification is sent to notification_url.

Successful Capture:

transactionid=4882205148226291165
timestamp=1778079086
orderid=Payabl-Test
payment_method=203
errormessage=
errorcode=0
type=capture
amount=20.00
currency=EUR
payment_state=credited
security=718ee443dee42deb530edd7ae05d976ddcd732601da80038ee5469a508919865

Failed Capture:

transactionid=4882196928951026956
timestamp=1776073215
orderid=Payabl-Test
payment_method=203
errormessage=Timeout
errorcode=203004
type=order
amount=20.00
currency=EUR
payment_state=not_credited
security=2fabeb96a0278b9c40fe5ae216e77b59a7322137518b5119bb71965d157d86f9

Refunds

Bancontact supports refunds and can be initiated only on a successful captured transaction.
The request will send a credit note to the authorization system after the customer has already been charged. The refund amount will be credited to the customer and the merchant’s account will be charged.

The refund can be done in two ways:

  • Through API integration
  • Through payabl. dashboard

Endpoint: <sandbox URL>/payment_refund
Request Type: POST
Content-Type: application/x-www-form-urlencoded

Refund Request:

merchantid=gateway_test
amount=20.00
currency=EUR
signature=8765cfe1ad0148a771a6a278cc692ac20c6bae9a
transactionid=4882205148226291165

cURL Request Example:

curl --location 'https://service-sandbox.apmgw-dev.payabl.tech/apm_gw/payment_refund' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'merchantid=gateway_test' \
--data-urlencode 'amount=20.00' \
--data-urlencode 'currency=EUR' \
--data-urlencode 'signature=8765cfe1ad0148a771a6a278cc692ac20c6bae9a' \
--data-urlencode 'transactionid=4882205148226291165'

Successful Refund Response:

transactionid=4882205148226291165
transid=4882205148226291165
status=0
errormessage=
errmsg=
amount=20.00
price=20.00
currency=EUR
orderid=Payabl-Test

Failed Refund Response:

transactionid=4882205148226291165
transid=4882205148226291165
status=-117
errormessage=refund+failed+%3A+wrong+currency
errmsg=refund+failed+%3A+wrong+currency
amount=
price=
currency=
orderid=Payabl-Test


Our Technical Support team is there to help you:
Email: [email protected]
Available Monday – Friday between 09:00 and 17:00 CET/CEST



Did this page help you?