Hi. We use the iFrame integration to allow customers to make clover payments.
When trying to pay for an order with the /v1/orders/{orderId}/pay and the card source generated by the iFrame, we get the following error:
Request:
"{"amount":2666,"currency":"USD","source":"<IFRAME-CARD-TOKEN>","tip_amount":0}"
Response:
{"message":"402 Payment Required","error":{"code":"card_declined","message":"CVV does not match","charge":"<CHARGE-ID>","declineCode":"issuer_declined"}}
I have 3 questions regarding this scenario:
- Why does this fail at this point? We rely on Clover to generate the card tokens for us which we assume Clover validates before providing the tokenized card.
- Is there something wrong with our assumption of the above? Does the actual validation happen when executing the charge? Does tokenization simply store the details on Clover end without any validation? We are currently under the assumption that a tokenized card is a valid card.
- If so, what are the possible major errors that need to be handled in the /v1/orders/{orderId}/pay flow so that we can show meaningful error messages to the customer?
Thank you for your support.