Authentication
To obtain an auth token an HTTP request must be made to Geopagos’s authentication server, credentials will be provided separately.
The auth token is generated with POST HTTP Request to: https://<AUTH_SERVER_ENDPOINT>/oauth/token
Note: AUTH_SERVER_ENDPOINT will be provided by Geopagos. Also, the auth token has a lifetime of 15 minutes so we recommend to create a new token for every new transaction flow.
The BODY must be a JSON Object according the following:
Request
{
"client_id": "<client id provided by Geopagos>",
"client_secret":"<client secret provided by Geopagos>",
"grant_type":"client_credentials"
}
Response
{
"token_type": "Bearer",
"expires_in": 1657743050,
"access_token": "an auth token"
}
You must take “access_token” string to obtain the authentication token.