#nguyensivan_reactnative-paymentsheet-updateserver
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1281282616070377595
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Are you saying you want to dismiss the Google Pay modal window after a specified time?
Yes, I want it to turn off after 15 minutes
Unfortunately there isn't a method that provides this functionality currently.
So I have no way to disable that method after the user calls confirmPlatformPayPayment?
Correct.
So is there any way I can handle my function before the user hits the Pay button?
What function?
I want to call an api update order on my server side before complete payment
before Pay now button
What are you updating and when do you have the data you need to update the order?
I want to update my order before pressing the pay now button so that the server does not delete the order after 15 minutes
Are your customers leaving the payment sheet open for 15 minutes or longer?
Yes, if they leave the payment longer than 15 minutes, Stripe still pays successfully but the order is deleted from my server. So I want the checkout to last less than 15 minutes or I can reset the timeout for that order from my server side.
Gotcha. Unfortunately, once you had off code control to the PaymentSheet, we do not return it to your application until the user completes payment.
Perhaps you could add some background process to ping your server that repeats until the payment sheet is dismissed?
Thank you very much! let me check my code again