#Kopito

1 messages ยท Page 1 of 1 (latest)

spring stratusBOT
vague wind
#

Thanks for the question. Checking in to whether that sheet can be closed programmatically

drifting kettle
#

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

royal nimbus
#

๐Ÿ‘‹ stepping in

#

One of our Engineers is working on this as we speak and it will likely get rolled out shortly

drifting kettle
#

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

royal nimbus
#

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

drifting kettle
#

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

royal nimbus
#

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

drifting kettle
#

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

royal nimbus
#

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

drifting kettle
#

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

royal nimbus
#

There isn't a way with Expo to still bump your Stripe RN SDK version? I thought that was possible now

drifting kettle
#

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

royal nimbus
#

Yeah I think that is worth checking, I could be wrong though.

#

Otherwise yeah if this is a deal breaker then you need to not use Expo or not use PaymentSheet

#

Or, you could just show a more friendly error message after the customer dismisses PaymentSheet

drifting kettle
#

Yeah worst case i'll use a CardField instead

#

Thank's for your time ๐Ÿ™‚