#Alan Tse

1 messages · Page 1 of 1 (latest)

next oarBOT
placid egret
#

Have you created a Payment Intent (pi_xxx)?

upbeat aspen
#

I plan to get paymentmethodid and then create paymentintent

placid egret
#

The pm_xxx does not expire, no

upbeat aspen
#

ok got it

and other question, if i created the payment intent, and then get the. payment_request/events/on_cancel
What is the status of my paymentintent?

placid egret
#

It depends, likely requires_payment_method I would suspect

upbeat aspen
#

oh sry.... i am wrong,
my question should be
if i created the payment intent, and call
stripe.ConfirmCardPayment;
and then get the. payment_request/events/on_cancel
What is the status of my paymentintent?

#

cuz i saw the doc said

The customer can dismiss the payment interface in some browsers even after they authorize the payment. This means that you might receive a cancel event on your PaymentRequest object after receiving a paymentmethod event. If you’re using the cancel event as a hook for canceling the customer’s order, make sure you also refund the payment that you just created.

so maybe the payment_request/events/on_cancel not inlfuence the success of paymentintent?

placid egret
#

As I said, 'it depends'. Yes, the payment could succeed in some instances of the cancel event so you'd check the status field of the PI and handle accordingly

upbeat aspen
#

ok i got it thanks a lot, ynnoj