nomadreservations / ngx-stripe

Angular 8.x wrapper for StripeJS
41 stars 32 forks source link

Could you implement "confirmPaymentIntent" without element, just with the payment method ID #30

Open vnelis opened 4 years ago

vnelis commented 4 years ago

Currently, it is not possible to implement the use-case scenario where we save the card for later payment, as described in https://stripe.com/docs/payments/save-after-payment.

To do this, the wrapper function "confirmPaymentIntent" should call:

this.stripe.confirmCardPayment(intent.client_secret, { payment_method: intent.last_payment_error.payment_method.id })

as described in https://stripe.com/docs/payments/save-after-payment.

Thank you very much!

FCHAPLIN commented 4 years ago

confirmPaymentIntend is now deprecated : https://stripe.com/docs/js/deprecated/confirm_payment_intent

stripe.confirmCardPayment() is now part of the required process to manage subscriptions.

May I work on a PR ?

Wlada commented 4 years ago

Is there any solution for save the card for later scenario?

Thanks