#erangalp
1 messages · Page 1 of 1 (latest)
Hi there, can you share with the PaymentIntent ID?
@noble coral Certainly - pi_3M2HfxES43xfYC6q0pwut5sI
Thanks, you can visit the decline codes page (https://stripe.com/docs/declines/codes) to learn about how to handle the card delince
For transaction_not_allowed error, the customer needs to reach out to the card issuer for more info
@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
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@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
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
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?