#nikita-saboo_code
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/1370129533423845438
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
sure I know that but do i need to also call stripe.confirmPayment immediatly too ?
No
elements.submit() is what triggers the Apple Pay modal to open
That is what needs to occur immediately.
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
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.