HMAC Examples
Additional text here
- Request
- Response
POST https://test-api.tokenex.com/TransparentGatewayAPI/Hash?Type=HMACSHA256 HTTP/1.1
Content-Type: application/json
TX_URL: https://www.example.com
TX_TokenExID: YourTokenExID
TX_APIKey: YourAPIKey
TX_HMACKey: YourHMACKey
{
"card": {
"type": "MC ",
"number": "{{{545454587415454}}}",
"expDate": "1126",
"cardValidationNum": "123"
}
}
HTTP/1.1 200 OK
Content-Length: 95
Content-Type: application/json; charset=utf-8
tx_hashValue: NDY0NmZiOTI5ZDAzYzRiODY2MjllNDJlNzgxMjI0ODYyNDQ2ODNjZmViZmU5ZThiMGRmNjBkOGRkZDdiMzlhYQ==
tx_refNumber: 19011512562595159744
{
"HashValue": "NDY0NmZiOTI5ZDAzYzRiODY2MjllNDJlNzgxMjI0ODYyNDQ2ODNjZmViZmU5ZThiMGRmNjBkOGRkZDdiMzlhYQ==",
"RefNumber": "19011512562595159744"
}