#pavan-confirmCardPayment

1 messages · Page 1 of 1 (latest)

wise zephyr
#

I'm not clear on the question, can you re-phrase it?

waxen rose
#

Frontend will call confirmCardPayment for subscription paymentIntent Secret to complete payment, how frontend knows whether payment successfully debited from card or not ?

wise zephyr
#

how frontend knows whether payment successfully debited from card or not ?
the confirmCardPayment() promise resolves with a result that contains a PaymentIntent object that it returns to your callback, which has a status

if status is succeeded , then funds have moved
Otherwise it will return an error in the result object

#
  .then(function(result) {
    // Handle result.error or result.paymentIntent
  });