Skip to content
English
  • There are no suggestions because the search field is empty.

Connect to the Gateway

How can I connect to the payment gateway and retrieve a token to initiate a transaction?

You can connect to our payment gateway using oAuth 2.0. This means that you have to get a token using the key and secret of the channel you want to connect with to request a token, with the following steps:

  • Encode your key and secret using Base64 as key:secret
  • Use this encoded value in the Authorization Header in your message to request a token via Basic Authorization at https://authorization.betterworld.nl/auth/v1/token/request
  • When your authorization is granted you will receive a response with a body like:

{
"access_token": "<Token>",
"expires_in": 86400,
"scope": "api",
"jti": "98d83ffd-2a73-4668-bb37-5a8e07963761"
}

  • You can check the jti using JWT decoding to check if the signature and the token is valid
  • To send a request to the payment gateway you can include the received access_token into your Authorization Header as a Bearer Token.

 

image-20260126-121940