richnologies / ngx-stripe

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

[BUG] confirmPayment method is not accepting clientSecret in options as conditionally required property #215

Closed nataliao2613 closed 8 months ago

nataliao2613 commented 1 year ago

Describe the bug In stripe js documentation confirmPayment method can accept either elements or clientSecret property in options object (doc link https://stripe.com/docs/js/payment_intents/confirm_payment). I was trying to pass clientSecret instead of elements, but it's not possible. I'm creating module for payment process that is split into two steps and I can only pass clientSecret to confirmPayment method. Two-step process is described in stripe documentation here https://stripe.com/docs/payments/build-a-two-step-confirmation#submit-payment. Is it possible to allow passing clientSecret instead of elements? I would appreciate a quick response, thank you.

richnologies commented 1 year ago

Hey @nataliao2613, can tell me what versions are you using of:

Thanks

nataliao2613 commented 1 year ago

angular "15.2.4", "@stripe/stripe-js": "^1.52.0", "ngx-stripe": "^15.6.0",

richnologies commented 1 year ago

Hey @nataliao2613, just release a new version 15.7.1 that should include support for this new features from Stripe. You might also want to update @stripe/stripe-js@1.54.0

Please, let me know if that works for you

Regards

R

richnologies commented 8 months ago

Closing this due to inactivity