#olezz
1 messages · Page 1 of 1 (latest)
Can you share your development website, so that I can have a check?
actually my website is barred behind a government authentication system for now so it might not be possible. would it be ok for me to show u my code instead?
Can you open the console to check if there is any error?
Since the error is at client, I'm afraid not having the development website is hard to debug
Sharing the code can be helpful if I can spot anything, but sometimes it can be due to other reasons
is this error message helpful? this is what is shown in the console
Ah! This is very helpful
this is what the code looks like, when the user clicks the payment button, we call the backend to create and confirm the payment intent
The issue is that Apple Pay requires payment to be processed immediately after customer clicks the submit button. If there is any async processing before submitting the payment, such error will be thrown
Let me find the relevant doc for this
Reference: https://github.com/stripe/react-stripe-js/issues/414#issuecomment-1615202528
that will trigger the errors you're seeing if the 'doSomethingAsync' takes longer than 1 second. Apple Pay requires that it's spawned within 1 second of a click event.
Ah! I see, thank u so much 🙂 i will try it again