#wayo1757
1 messages · Page 1 of 1 (latest)
Hello! With the Payment Element you should be using stripe.confirmPayment instead of the ones specific to a particular method of payment: https://stripe.com/docs/js/payment_intents/confirm_payment
It does not matter that you only have it configured to use card right now.
When I do that, I get an error stating I need to call elements.submit() before calling confirmPayment() .
https://stripe.com/docs/js/elements/submit
When i go to look up the function, it says to use it when creating an Intent. But I did use a payment intent's client secret to create the payment element.
You need to do both. Can you share your code?
I haven't tried calling element.submit() . Should I try that first?
Yep!
That worked! Thanks for the help!