#一刻千金-rn-payment

1 messages · Page 1 of 1 (latest)

cobalt palm
#

Hey! Specifically which payment screen are you referring to?

latent pivot
#

The one for react native

#

So when you click in pay now in our app, there's a pop-up window of the payment form in stripe

cobalt palm
#

Which methods are you using?

latent pivot
#

This window

#

And methods theres a InitializePaymentSheet

#

ConfirmPaymentSheet

#

const { initPaymentSheet, presentPaymentSheet } = useStripe();

cobalt palm
#

Got it, let me check

latent pivot
#

Thanks!

cobalt palm
#

Hmm, there doesn't appear to be a way to set a 'timeout' for the Payment Sheet UI

#

Nor can you close them programmatically (which would help you build your own timeout)

latent pivot
#

Okay, I'll do that then

#

Thanks a lot ! Have a nice day

cobalt palm
#

There's no way to close them programmatically

latent pivot
#

Oh

#

Then I have a problem there's no way to be solved

#

The thing is when you open that payment screen, in our backend you open a transaction that automatically cancels after 10 minutes

#

But you can still pay with stripe

#

So that generates a discrepancy to the user, where they have indeed paid but our database has a canceled transaction

cobalt palm
#

Yep, that's frustrating for sure

latent pivot
#

Thanks ! I'll read it right now

#

I'm writing a post in that issue

#

Is there a way of solving this with the Stripe API webhooks_

#

?*

cobalt palm
#

Hmm, not really. There's still no way to programmatically close the Payment Sheet UI

#

Which is what you'd need even if you listened to an event like payment_intent.cancelled

latent pivot
#

Ok, I understand

#

Thanks !

cobalt palm
#

Np! Sorry there's no clear solution

latent pivot
#

No problem ! We'll wait

#

I hope that functionality will be implemented in the future