richnologies / ngx-stripe

Angular 6+ wrapper for StripeJS
MIT License
219 stars 77 forks source link

[BUG] confirmPayment method returns "elements should have a mounted Payment Element or Express Checkout Element" error #211

Closed nataliao2613 closed 11 months ago

nataliao2613 commented 1 year ago

Describe the bug I'm creating an payment module application, which is split into few steps. When user selects credit card as payment method, next step is filling stripe payment element form, next one is custom form for billing information, when both steps are completed, stripe confirmPayment method is run and every time "Invalid value for stripe.confirmPayment(): elements should have a mounted Payment Element or Express Checkout Element." error message appears.

Expected behavior confirmPayment is completed and return result.

Screenshots Screenshot 2023-05-23 at 16 51 31

richnologies commented 1 year ago

Hey @nataliao2613, sorry I miss this one.

I'm having issues understanding the problem. Maybe you can provide me a small snippet on what are you trying to do.

Can you also try to the new version: 15.7.1 in case that help?

Appreciate any feedback

Regards

R