Hi all,
We're having trouble completing transactions when using a token with the Developer Pay API.
We can successfully make a charge by sending payloads with the encrypted card information (all identifying card & merchant info redacted here)
{
"orderId": "ABCDEFGHIJKLM",
"taxAmount": 0,
"zip": "90210",
"expMonth": 1,
"cvv": "999",
"amount": 100,
"currency": "usd",
"last4": "999",
"expYear": 2020,
"first6": "410101",
"cardEncrypted": "long_encrypted_string=="
}
and we successfully receive a response like
{
"paymentId": "ABCDEFGHIJKLM",
"result": "APPROVED",
"avsResult": "ZIP_CODE_MATCH",
"cvvResult": "SUCCESS",
"authCode": "123456",
"token": "XYZ123ABC1234"
}
But when we attempt to make a charge using just the token, say like,
{
"orderId": "ABCDEFGHIJKLM",
"taxAmount": 0,
"amount": 100,
"currency": "usd",
"token": "XYZ123ABC1234"
}
we get an error "796-INVLD DETOK" like this
{
"result": "DECLINED",
"failureMessage": "796-INVLD DETOK"
}
This also occurs if we supply the first6, last4, cvv, expMonth, expYear and zip in addition to token.
Any ideas on what we're doing wrong? What exactly does this error mean anyway?