...
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 Name | Description |
---|
username | Your Paygate merchant identifier (merchantId / MerchantID) |
password | Your 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 |
---|
|
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 Name | Description |
---|
grant_type | Set this to "client_credentials". |
client_id | Your Paygate merchant identifier (merchantId / MerchantID) |
client_secret | Your Paygate REST API key. You will receive this value during onboarding process. |
Response
Code Block |
---|
|
{
"access_token":"eyJz93a...k4laUWw",
"token_type":"Bearer",
"expires_in":3599
} |
...