#chee-hong-decline-code
1 messages · Page 1 of 1 (latest)
Hi there, if an error were to occur, along with the status code, there's the error.message field that provides detailed summary of what went wrong.
For your information, this is a page to provide guidance in how to handle errors [0].
Hope you find this useful 😄
Thanks. I already handle the error right now. Just that need to check if there is document to list the detail error messages[English]? So that we can do the localize translation
In short, is there document to list error.message
Please find more information here: https://stripe.com/docs/error-codes
Yes, I aware of https://stripe.com/docs/error-codes, but it is not the exact error message
The descriptions below the error codes are the relative error messages.
It seem like the description is not the exact error messages
for example : insufficient_funds
The customer’s account has insufficient funds to cover this payment.
What we received is actually
Your card has insufficient funds.
Thank you for noting this, I had a look into the code, it does seem description has been used in place of the original error message when generating the documents.
The reason for this is because the error.message changes according to the user account's language setting.
Whereas the error description you see in the documentation is consistent across all languages, this is done to ensure the integrity of the error codes, i.e. to ensure there is only one definition across all languages.
Sorry we do not have any official document that contains the exact error message for one specific language, I will raise this with the team to see if this information can be exposed in the future.
All right. Thanks for letting me know about this