question

mlyon avatar image
mlyon asked tommybahamax sent

"DECLINED-XXX" error message on /v1/charges endpoint

In the past few days we've been seeing cards get declined with this rather cryptic error message when attempting to charge a card on file. The error message is literally "DECLINED-XXX", that's not a placeholder. For example, The response from POSTing to the /v1/charges API would be:

{"message":"402 Payment Required","error":{"code":"card_declined","message":"DECLINED-XXX","charge":"YSYB6Y7SDMVFX","declineCode":"issuer_declined"}}

We've seen this on different customer's cards. Can anyone shed some light on what that message means? Usually the message has a more useful description of what the problem is.

e-commerce apiecommerce
10 |2000

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

joshelynne34 avatar image
joshelynne34 answered bryanvargas edited

The "DECLINED-XXX" error message indicates that the credit card transaction has been declined. The "XXX" likely represents a specific reason or code for the decline.It's important to investigate the cause, such as insufficient funds, expired card, fraud protection, or technical issues. Contact the cardholder, retry later, or seek support from your payment processor for resolution.

10 |2000

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

dankinchen avatar image
dankinchen answered

@joshelynne34 that is not an answer. Obvious that the card is declined. As a developer I have to return this message to the user. So the user is going to get "DECLINED-XXX", that is not very helpful, is it?

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community