#pavan-confirmCardPayment
1 messages · Page 1 of 1 (latest)
Frontend will call confirmCardPayment for subscription paymentIntent Secret to complete payment, how frontend knows whether payment successfully debited from card or not ?
how frontend knows whether payment successfully debited from card or not ?
theconfirmCardPayment()promise resolves with aresultthat contains a PaymentIntent object that it returns to your callback, which has astatus
if status is succeeded , then funds have moved
Otherwise it will return an error in the result object
https://stripe.com/docs/js/payment_intents/confirm_card_payment
see the callback in the code snippet
Complete reference documentation for the Stripe JavaScript SDK.
.then(function(result) {
// Handle result.error or result.paymentIntent
});