#hexer
1 messages · Page 1 of 1 (latest)
Hi there!
I think the page you linked should contain everything.
And I'm sure if we translate these error messages.
So "DESCRIPTION" is displayed to customers as msg?
It depends. How are you accepting payments? Checkout Session, Payment Element, something else?
With Payment Element
Let me run some tests.
what I want to achieve is to have custom message for all default unknown reason for decline
but not sure how can i target these, there are to many of them by just going one by one
Why don't you display directly the error message Stripe returns? It should be automatically translated for your users.
Sometime its just generic and users stop with re-trying payment
Hey! Taking over for my colleague.
If it's a generic declines, that mean Stripe don't have much information about the decline it self and the customer need to reach out to their bank and see why the payment failed..
yeah, and it will be better that generic msg is actually telling to customer to contact bank instead "The card was declined for an unknown reason."
i want to target this kind of messages and display my custom
but im not sure what error events this generic message through "decline_code" definition
You need to achieve this using your integration, you catch the decline code e.g. generic_decline and display that message, you may need to handle translation on your end too if needed..
but there are more of them with generic messages, beside generic_decline.. for example "do_not_honor" also display that generic message
Same... The customer needs to contact their card issuer for more information.
You display the same message for that code too
i can filter this page https://stripe.com/docs/declines/codes with "unknown reason" and target all codes with it and use my custom message? there is no better way?
or for: "The customer needs to contact their card issuer for more information."
Yeah you need to implement this on your own using your frontend integration and set custom/friendly messages according to your requirements...
so there is no way to actually find out what is message displayed to user? if its not this from "description" column on https://stripe.com/docs/declines/codes
can i somehow trigger manually error event to see msg?
You can use on of these declined payments cards and do some tests:
https://stripe.com/docs/testing#declined-payments
ok tnx