#一刻千金-rn-payment
1 messages · Page 1 of 1 (latest)
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
Which methods are you using?
This window
And methods theres a InitializePaymentSheet
ConfirmPaymentSheet
const { initPaymentSheet, presentPaymentSheet } = useStripe();
Got it, let me check
Thanks!
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)
Sorry if I wasn't clear, you can't do that
There's no way to close them programmatically
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
Yep, that's frustrating for sure
There's a request for a feature on GitHub that would help you out here: https://github.com/stripe/stripe-react-native/issues/724
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_
?*
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
Np! Sorry there's no clear solution