#fiery_papaya_08623-applepay

1 messages ยท Page 1 of 1 (latest)

abstract barnBOT
feral quartz
#

Hello

#

What error do you see?

quaint light
#

A problem has occurred. Unable to display Apple Pay. Please choose another payment method and try again

feral quartz
#

Do you see an error in your console?

quaint light
#

No i don't

feral quartz
#

Can you screenshot what you see exactly?

quaint light
#

It's in french but says what i copy pasted earlier

feral quartz
#

What integration flow are you using?

#

This is Payment Element?

quaint light
#

Yes it is Payment Element

feral quartz
#

Okay can you show me your click handler code here?

#

You are just surfacing the error returned from confirmPayment() or... ?

quaint light
#

const { error, paymentIntent } = await stripe.confirmPayment({ elements, redirect: "if_required", confirmParams: { payment_method_data: { billing_details: { name: userInformation.firstName + " " + userInformation.lastName, email: userInformation.email } }, receipt_email: userInformation.institutionEmail } });

#

Yes the error message is the one received in the error

feral quartz
#

Can you provide me a PaymentIntent that you are testing with?

quaint light
#

pi_3NxYFBLORyiljRTA0Skkgzqd

feral quartz
#

Hmmm is there somewhere I can reproduce this?

#

On a test site

#

Also that looks like a live PaymentIntent. Can you reproduce in test mode?

quaint light
#

I dont have a test site except in a local environment

#

and apple pay only shows up on a iPhone in a web browser but not on a computer

feral quartz
#

It should show on a computer as long as you are over https and have a card in your wallet

quaint light
#

only google pay shows up

#

on a computer

#

and its in https yes

feral quartz
#

Are you using Safari?

frozen bison
#

fiery_papaya_08623-applepay

quaint light
#

Ok i am now using safari and it shows up on my web browser

#

In my console, i get this: IntegrationError: show() must be called from a user gesture handler (such as a click handler, after the user clicks a button).

frozen bison
#

๐Ÿ‘‹ hopping in here since bismarck has to head out soon - typically this happens if you're doing a lot of extra work between when you click the "Submit" button and you call stripe.confirmPayment

quaint light
#

I see ! I added some api calls recently between these so maybe thats causing the problem

#

thank you!

frozen bison
#

๐Ÿ‘