#erangalp

1 messages · Page 1 of 1 (latest)

fickle shoreBOT
noble coral
#

Hi there, can you share with the PaymentIntent ID?

austere saffron
#

@noble coral Certainly - pi_3M2HfxES43xfYC6q0pwut5sI

noble coral
#

For transaction_not_allowed error, the customer needs to reach out to the card issuer for more info

austere saffron
#

@noble coral Certainly, we understand that part. The error information in our Stripe dashboard indicates as such as well, however the error message returned with the payment and that the customer sees is "Your card does not support this type of purchase" which is quite different and rather hard to address in any meaningful way. We were wondering why is are there different error messages from the API and in our Stripe dashboard, as it's increasing our customer service work

noble coral
#

There's no API to translate the decline_code to a message that customer can easily understand. If you think it should be feature request, please let Stripe support know https://support.stripe.com/contact

austere saffron
#

@noble coral The API does return an error message as part of the response -
"last_payment_error": {
"charge": "ch_3M2TVAES43xfYC6q016krIbD",
"code": "card_declined",
"decline_code": "transaction_not_allowed",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card does not support this type of purchase.",

#

This message is different than what we see in our Stripe dashboard, and provides no ability for the customer to troubleshoot the payment issue

#

We wanted to see if there's a reason for it, for example what is it trying to convey by "this type of purchase", and if there's any way to provide the same error we see in our Stripe dashboard to the customer instead

noble coral
#

The workaround that I can think about now is to implement a decline_code to error message mapping by yourself, so that you can provide a more meaningful message to your customers when decline happens

austere saffron
#

That is one way to go about it, but I was hoping your team can provide more info on what this error message means and why it differs from what's shown in the Stripe dashboard. What is the "purchase type" the card is not compatible with?