#nguyensivan_reactnative-paymentsheet-updateserver

1 messages ยท Page 1 of 1 (latest)

magic tideBOT
#

๐Ÿ‘‹ 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.

fathom totem
#

Hi ๐Ÿ‘‹

Are you saying you want to dismiss the Google Pay modal window after a specified time?

hybrid quiver
#

Yes, I want it to turn off after 15 minutes

fathom totem
#

Unfortunately there isn't a method that provides this functionality currently.

hybrid quiver
#

So I have no way to disable that method after the user calls confirmPlatformPayPayment?

fathom totem
#

Correct.

hybrid quiver
#

So is there any way I can handle my function before the user hits the Pay button?

fathom totem
#

What function?

hybrid quiver
#

I want to call an api update order on my server side before complete payment

#

before Pay now button

fathom totem
#

What are you updating and when do you have the data you need to update the order?

hybrid quiver
#

I want to update my order before pressing the pay now button so that the server does not delete the order after 15 minutes

fathom totem
#

Are your customers leaving the payment sheet open for 15 minutes or longer?

hybrid quiver
#

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.

fathom totem
#

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?

hybrid quiver
#

Thank you very much! let me check my code again