#fiery_papaya_08623-applepay
1 messages ยท Page 1 of 1 (latest)
A problem has occurred. Unable to display Apple Pay. Please choose another payment method and try again
Do you see an error in your console?
No i don't
Can you screenshot what you see exactly?
Yes it is Payment Element
Okay can you show me your click handler code here?
You are just surfacing the error returned from confirmPayment() or... ?
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
Can you provide me a PaymentIntent that you are testing with?
pi_3NxYFBLORyiljRTA0Skkgzqd
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?
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
It should show on a computer as long as you are over https and have a card in your wallet
Are you using Safari?
fiery_papaya_08623-applepay
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).
๐ 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
I see ! I added some api calls recently between these so maybe thats causing the problem
thank you!
๐