Successfully integrating Stripe into my online shop, I completely failed to get information on whether/how to configure Stripe to return error messages in German instead of English.
So my question is:
Is there a way to have localized error messages when using the client-side API "https://js.stripe.com/v2
"?
Update 2014-05-03
I've asked the same question on Twitter and one of their staff (I guess) told me that this is currently not possible and on their TODO list.
NOTE
The text is not production ready. It's just the developer text. Some errors shouldn't be showed to the user. If I have some better texts I will re edit this. If someone has the time to do so, feel free to edit.
If you would like to provide their english text:
Stripe V3:
online payment error codes https://stripe.com/docs/error-codes
declined error codes https://stripe.com/docs/declines/codes
For further reference:
While you can't use human messages on stripe errors to be displayed directly on localized pages, you can take advantage of
response.error.code
to provide your own translations.The list of codes is documented here (currently, right column, in the "codes" section).