#heshamelhattab
1 messages · Page 1 of 1 (latest)
hi there!
you can't cancel a succeeded PaymentIntent. but sure you can refund it if needed.
for example if the payment intent status i s requires_caputre, will the refund work as well ?
no, because there would ne nothing to refund since the PaymentIntent has not succeeded yet
ok so I should check if the payment intent status is successful then create a refund if the payment intent status is something else then cancel payment intent right ?
correct