#nicolejaneway
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.
- nicolejaneway-element-events, 7 hours ago, 7 messages
Hello! Yeah, have a look at this guide: https://stripe.com/docs/payments/build-a-two-step-confirmation
I don't think this fixes the problem...
Ideally, the user could still edit their cart on the confirmation page.
So in my design, confirmation would be the final step before submitting the payment.
You can do that, but you would need to update the Payment Intent accordingly.
Ideally yes, but...
Invalid value for stripe.confirmPayment(): elements should have a mounted Payment Element or Express Checkout Element.
Not sure I understand?
The error seems to indicate I need to have a mounted Payment Element or Express Checkout Element
Can you share the code that's triggering that error?
Maybe I need to do something other than stripe.confirmPayment()
No, that's the right method, but I think you're passing the wrong parameters.
Can you share the code?
Yeah
Yeah, you're passing in elements there. The guide I linked you to uses stripe.confirmPayment, but it does not use the elements parameter.
You pass in the client secret from the Payment Intent instead.
I recommend you read the guide I linked to top to bottom and compare it to your current integration to spot the differences. It's a very different approach, but it uses some of the same APIs and methods and whatnot.
I will, thanks Rubeus!
Happy to help!