Secure payments via Tokenisation API with verified cards
1. Pay with credit card using token
Item
Details
1.1 Authorisation header (Basic authorisation)
Type
Basic
1.2 Request parameters (All mandatory)
1.3 Response Parameters
1.4 Sample Response
Charge credit card using token
Authorizations
AuthorizationstringRequired
Body
Request parameters for payment using tokenization
namestringOptionalExample:
Abu Bin AliemailstringOptionalExample:
[email protected]detailstringOptionalExample:
Order for product id 4phoneintegerOptionalExample:
123456789order_idstringOptionalExample:
3432D4amountintegerOptionalExample:
25.5tokenstringOptionalExample:
Generated token from Get Token API
D12820HJhashstringOptionalExample:
Hash generated using HMAC SHA256. Construct the hash as follows hash_hmac(‘SHA256’, < your merchant id >< name >< email >< phone >< detail >< order_id >< amount >, <merchant_secret_key>) without the < > character
a8167dd09f01ebed0b18e67b2cc2424a0d058ccc83d94803482ecdeedff7728fResponses
200
Charge credit card using token
application/json
401
Unauthorized
application/json
post
/apiv1/pay_cc2. Enable or Disable Credit Cards
2.1 Authorisation Header (Basic authorisation)
Type
Basic
2.2 Request Parameters (All Mandatory)
Parameter Name
Parameter value / description
2.3 Response Parameters
Enable or disable Credit Card by token
Authorizations
AuthorizationstringRequired
Body
Request parameters to enable/disable credit cards using token
tokenstringOptionalExample:
Generated token from Get Token API
6bcc32c3cf4c6de03f4b3c967a36606d965d54cd51eb6cb7507555e2ad7b4521Responses
200
Response update token status
application/json
post
/apiv1/update_token_status200
Response update token status
3. Validate Payment Token
3.1 Authorisation Header (Basic Authorisation)
Type
Basic
3.2 Request Parameters (All Mandatory)
Parameter Name
Parameter value / description
3.3 Response Parameters
Endpoint to validates the supplied token
Authorizations
AuthorizationstringRequired
Body
Request parameters to validate token
tokenstringOptionalExample:
Generated token from Get Token API
6bcc32c3cf4c6de03f4b3c967a36606d965d54cd51eb6cb7507555e2ad7b4521Responses
200
Validate token
application/x-www-form-urlencoded
post
/apiv1/validate_token200
Validate token
Last updated