#arshad_53441
1 messages · Page 1 of 1 (latest)
hi! if this is a backend API call, you can't
in general you should use our recommended flows that use stripe.js in the frontend to confirm PaymentIntents, that results in localised user-facing errors. The errors from the backend API are intended for developers.
oh i see. there i should write my own error code
thanks
so there is no way to get the error in french to show the client?
if you confirm a PaymentIntent on the the frontend it will just work
but otherwise, you have to inspect the error code https://stripe.com/docs/api/errors#errors-code and choose an appropriate string in your own backend code and use that.
the problem is that i have to go to another page after the payment. thus i can't get the frontend paymentintent
👋 stepping in as karllekko needs to step away
Why would you go to another page if there is an error?
ah sorry. i go to another page if success. when the payment fail , it returns back to the payment page