#sudhanshu
1 messages · Page 1 of 1 (latest)
hello! Do you have an example PaymentIntent id? And what "random" message is the user seeing?
pi_3NfkEuHBzVLseUqK1q5XCRrt
here are the details
so we want to show a proper and user friendly message
how are you currently handling the error? can you share the code snippet?
can you also share the paymentIntent response? Please omit any sensitive info (if any)
I think it's actually your if block on line 1013 that is triggering that toast/message
Expectation is that you'd check the error.type in that block (https://stripe.com/docs/api/errors#errors-type) and display a message according to that
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.