#lucasnguyen1707
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lucasnguyen1707, 3 hours ago, 23 messages
What's the issue?
InvalidAccessError: Page already has an active payment session.
Did you hear that issue yet?
Sure, can happen if you've not correctly dismissed the Apple Pay dialog. How are you integrating Apple Pay?
I integrate it by the Stripe element js
Payment Element? Express Checkout Element?
well usually you get this error if the button is clicked twice in quick succession(so the popup is already showing and the button is pressed again).
This issue occurred after I verified the Apple Pay popup
hard for me to say without seeing all of the actual code involved
Here is my code to create a Payment
When my payment failed, it return the "invalid_request_error" in line 190
I'd suggest trying to understand why that is
for example you can look at your Stripe API logs https://dashboard.stripe.com/test/logs, or inspect the error that is thrown
Can i help another question
the Apple pay should popup before my paymentIntent creation of after that
either way is possible, it depends how you set things up. There's no requirement either way.
And user must be authenticated with there Apple Pay before we go to confirm the payment by "confirmPayment", right?
yes
Do you have the example repo of that flow
there's a full guide at https://stripe.com/docs/payments/accept-a-payment-deferred?type=payment