#nikita-saboo_code

1 messages ¡ Page 1 of 1 (latest)

heavy tundraBOT
#

👋 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/1370129533423845438

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spring glacier
#

Hello there

#

This is specifically a security limitation on Apple's end. You need to call elements.submit() immediately when your submit handler runs. Then you can fetch your backend after that.

crystal ibex
#

sure I know that but do i need to also call stripe.confirmPayment immediatly too ?

spring glacier
#

No

#

elements.submit() is what triggers the Apple Pay modal to open

#

That is what needs to occur immediately.

crystal ibex
#

ok one more question does Apple pay work in private browsing? Sorry i could have searched it but I'm bit confused since it shows but apple pay pop-up doesnot show

spring glacier
#

It is a bit nuanced in a private browser as it will always show up since the check for whether the customer has a card in their wallet can't run successfully so if there is no card in the wallet then it won't function but if there is a card then it should work as normal.

crystal ibex
#

aah I see. No wonder I was seeing it but not able to go forward and submit it.

#

thanks. This cleared up my questions!