#Alan Tse
1 messages · Page 1 of 1 (latest)
Have you created a Payment Intent (pi_xxx)?
I plan to get paymentmethodid and then create paymentintent
The pm_xxx does not expire, no
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?
It depends, likely requires_payment_method I would suspect
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?
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
ok i got it thanks a lot, ynnoj