#Kopito
1 messages ยท Page 1 of 1 (latest)
Thanks for the question. Checking in to whether that sheet can be closed programmatically
Thanks for the quick response. To add more information - when i cancel the payment intent and after that the user tries to pay in the Logs section of the Stripe dashboard there is a log with a error code - "payment_intent_unexpected_state". If it's not possible the close the payment sheet a way to modify the "message" of the error mentioned above would suffice
๐ stepping in
You want to follow along with https://github.com/stripe/stripe-react-native/pull/1287
One of our Engineers is working on this as we speak and it will likely get rolled out shortly
Yeah i've seen this thread, but i'm pretty sure even if it gets rolled out shortly it wont be available for expo anytime soon correct?
If there's no way currently to do that, do you have any idea about the other thing i asked - if i can modify the error message that is sent back when a user tries to pay after a payment intent has been cancelled.
I can provide a screenshot about which error message I'm referring to if needed
I thought there was a way to override RN SDK version even with Expo?
Maybe I am misremembering
I don't believe you can modify that error message, but feel free to provide a screenshot and I can confirm
Im showing a toast pop-up, but if the user chooses to pay with "link" the toast will not show. And that error message is quite confusing and meaningless to the user
Hmm that's strange. I don't think we should be showing that full error message there client-side.
Ohhh
That is your toast
Okay that makes sense
Then yeah you need to show a customer-friendly error message in this case
nono, the toast is on the top of the screen in the mobile app, but the stripe error is still shown in the payment sheet
Like for that long error message, I'm not doing anything additional to show it
Ah it may be confusing for you, because i framed it with red, sorry about that, i just wanted to specify what to look at
Ah okay
I didn't realize that was the error message here.
That said, no you can't customize this as we handle everything within the PaymentSheet
I can file feedback about that error message though
And about making it more customer friendly
Yeah it may be the case that the error message is weird because of the language thats set on the stripe account, but even so it doesn't make sense idk ๐ Ok so my only solution is not use payment sheet
There isn't a way with Expo to still bump your Stripe RN SDK version? I thought that was possible now
Hm not sure, last time i tried for another app i couldn't do that, but that was 2-3 months ago. I will research on this again