Closed jordanchitty closed 4 years ago
I used confirmPaymentIntent method instead
this.stripe
.confirmPaymentIntent(this.secretToken, this.element, {
payment_method_data: {
billing_details: {
address: {
city: 'Irving',
country: 'CA',
line1: '123 A Place',
line2: 'Suite 100',
postal_code: 'VOE 1H0',
state: 'BC'
},
email: '',
name: '',
phone: '';
}
}
})
I have added a confirmCardPayment method to reflect the changes to the Stripe JS API. ConfirmCardPayment replaces CompletePaymentIntent, which has been deprecated. ConfirmCardPayment allows Stripe JS to handle SCA authentication correctly in the modal. https://stripe.com/docs/js/payment_intents/confirm_card_payment