richnologies / ngx-stripe

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

[BUG] Payment request button only fires token event #254

Open MikkelBeefit opened 5 months ago

MikkelBeefit commented 5 months ago

Heey @richnologies

Suddenly our checkout frontend has this same problem with the request button. Same as #183 it seems.

It doesn't emit the paymentMethod event. Seems like this happens with our upgrade to Angular 15 and thereby also the upgrade to ngx-stripe.

We use the following: "ngx-stripe": "^15.8.1", "@stripe/stripe-js": "^3.4.0"

I get the token event, and then 30 seconds later this warning message comes from the Stripe library: "Timed out waiting for a call to complete(). Once you have processed the payment in the "token" handler, you must call event.complete within 30 seconds."

All the logic to continue happens in the paymentMethod event, so that's the reason for the message. Please find attached images of the template and the request options.

Hope you have some ideas.

Screenshot 2024-05-10 at 14 03 28 Screenshot 2024-05-10 at 14 01 24