question

Sergey avatar image
Sergey asked David Marginian Deactivated commented

TOKEN FAILURE error on payment for order with Developer Pay API

Merchant is enabled for multi payment tokens (paymentProcessorName : First Data RapidConnect TCP, supportsMultiPayToken : True). Customers provide credit card details for first order, payment is processed successfully (with Developer Pay API) and credit card token is saved as vaulted card on customer record. For next order we try to process payment with vaulted card but get "TOKEN FAILURE" error from https://api.clover.com/v2/merchant/YYYYYYYYY/pay

Request:

{

"orderId": "XXXX",

"currency": "USD",

"amount": 1045,

"tipAmount": 157,

"taxAmount": 95,

"last4": "XXX",

"first6": "XXX",

"zip": null,

"expMonth": null,

"expYear": null,

"cvv": null,

"cardEncrypted": null,

"vaultedCard": {

"token": "ZZZZZZZZZZZZ",

"first6": "XXX",

"last4": "XXX",

"expirationDate": "XXX"

}

}

Response:

{

"paymentId": "XXXX",

"result": "DECLINED",

"failureMessage": "TOKEN FAILURE"

}

What can be the reason for the error ?

PaymentsDeveloper Pay API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

Can you try this again? It is possible this was just a one-off error. If it doesn't work the second time it is probably some sort of merchant configuration issue that unfortunately we can't help you with here. You will have to have the merchant create a ticket with Clover support so they can investigate the merchant's configuration and see if everything is correct.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sergey avatar image Sergey commented ·

Yes, we tried it multiple times for different customers/cards. Thank you for your help. We will ask the merchant to contact Clover

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ Sergey commented ·

Ok, thanks. For merchant configuration issues the merchant must initiate the request.

0 Likes 0 ·

Welcome to the
Clover Developer Community