Token transactions
A method for a customer to make a transaction without re-entering the card information (Send a transaction request from merchant’s backend to Golomt bank’s API).
genToken
send the genToken field with Y value on the api/invoice or invoice request. It enables a token to represent the payment card in case of successful payment of the invoice.
Merchant keeps this token on its user and uses this token for next transactions.
token is created only for successful transactions.
Created token is shown during transaction check or calling up the api/inquiry function
Service advantages
- Simple service card for customers.
- Faster transaction processes
Function calling path
https://ecommerce.golomtbank.com/api/pay
Parameters for merchant’s request
Json
{
"amount": "string",
"checksum": "string",
"transactionId": "string",
"lang": "string",
"token": "string"
}
Parameters | Type | Length | Definitions |
---|---|---|---|
amount | String | 256 | Transaction amount |
checksum | String | 256 | checksum = amount + transactionId + token |
transactionId | String | 256 | Merchant’s transaction number |
lang | String | 256 | Language to see transaction details MN Mongolian EN English |
token | String | 256 | Value sent by the bank to represent the card information |
checksum- read this link for details.
Response
{
"amount": "1.00",
"errorDesc": "Амжилттай",
"checksum": "9ffd1bb0544990197e4f26ab71b0feaae5f8ee3d824e70c8bcb52d14b5584652",
"errorCode": "000",
"cardNumber": "498738******3883",
"transactionId": "R749P918K873"
}
Parameter | Type | Description |
---|---|---|
amount | String | Amount withdraw from the card |
errorDesc | String | See status code definitions here |
checksum | String | checksum = transactionId + errorCode + amount |
errorCode | String | See transaction status code here |
cardNumber | String | Transaction card number |
transactionId | String | Unique transaction number from the organization |