Check Token transaction
Check and confirm successful or unsuccessful transaction.
If you need to connect a token, submit a request to the bank.
Function calling path
https://ecommerce.golomtbank.com/api/check
Parameters required for merchant’s check request
Json :
{
"checksum": "string",
"transactionId": "string"
}
Parameter | Type | Size | Description |
---|---|---|---|
transactionId | String | 256 | Unique transaction number transferred from the organization |
checksum | String | 256 | checksum = transactionId + transactionId |
Response
Example of successful transaction
{
"amount": "1",
"errorDesc": "Амжилттай",
"checksum": "8e2538fac797d6828.....................3c6863f60aac",
"errorCode": "000",
"transactionId": "test000001",
"cardNumber": "949625******0003",
"token": "9ffd1bb0544990........b0feaae5f8ee3d824e"
}
Example of unsuccessful transaction
{
"amount": "1",
"errorDesc": "Картын хугацаа дууссан",
"checksum": "8e2538fac797d6828ca93c34a4487c54e75803a18978d425dfec3c6863f60aac",
"errorCode": "300",
"transactionId": "test000001",
"cardNumber": "949625******0003",
"token": "9ffd1bb0544990........b0feaae5f8ee3d824e"
}
Parameter definitions
Parameter | Type | Definition |
---|---|---|
status | String | SENT=Payment information is sent, PENDING=Payment is pending |
amount | String | Amount withdrawn from the card |
bank | String | Card issuer bank |
checksum | String | checksum = transactionId + errorCode + amount + token When token is not created token token field is not included |
errorCode | String | See transaction status code here |
transactionId | String | Merchant's transaction number |
cardNumber | String | Transaction card number |
token | String | Token number to present the card |