#asrob

1 messages · Page 1 of 1 (latest)

coarse breachBOT
vestal island
#

If you're using the Payment Element, the Apple Pay button should be included in there

#

Are you integrating apple pay separately?

solid roost
#

It is and it's not working

#

Nope.

vestal island
#

Interesting

#

Can you share your front-end code?

#

And a screenshot of the error?

vestal island
#

Thanks. Looking now

icy shell
#

👋 stepping in, this is a limitation on Apples side where they expect the modal to be presented within 1 second of the initializing handler.

#

You'll need to move your AJAX call out of this handler function and just call confirmPayment immediately

solid roost
#

Ok that's super helpful @vestal island & @icy shell . I suspected that was the issue but wasn't sure why. I'll look at re-working the code. I'm stepping in for someone else but am not even clear why the AJAX calls is being made just prior except possibly to adjust the payment intent for total amount changes.

icy shell
#

Yeah that stuff can (and should in this case) be handled ahead of the pay click handler

#

Let us know if you run into any further challenges!