Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENWORK and version Documentation

...

Code Block
curl --request POST \
  --url https://test.computop-paygate.com/gateway/v1/payments \
  --header 'authorization: Basic base64-encoded string username:password' \
  --header 'content-type: application/json'

Parameters

Parameter NameDescription
usernameYour Paygate merchant identifier (merchantId / MerchantID)
passwordYour Paygate REST API key. You will receive this value during onboarding process.

OAuth2

Paygate REST API supports the Client Credentials Flow, which involves an application exchanging its application credentials, such as client ID (your merchantId) and client secret (your API key), for an access token.

Tokens are requested towards Token URL: https://test.computop-paygate.com/auth/oauth/token using standardized framework: https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow

Sequence Diagram

Image Added

Request

Code Block
linenumberstrue
curl --request POST \
  --url 'https://test.computop-paygate.com/auth/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=YOUR_merchantId \
  --data client_secret=YOUR_API_key


Parameters

Parameter NameDescription
grant_typeSet this to "client_credentials".
client_idYour Paygate merchant identifier (merchantId / MerchantID)
client_secretYour Paygate REST API key. You will receive this value during onboarding process.

Response

Code Block
languagejson
{
  "access_token":"eyJz93a...k4laUWw",
  "token_type":"Bearer",
  "expires_in":3599
}

...