#cblaze-capture-refund
1 messages · Page 1 of 1 (latest)
yes you just cancel the PaymentIntent: https://stripe.com/docs/api/payment_intents/cancel
Yes I am doing that
I am getting No such payment_intent: , but there is a non captured payment
that's a Charge id, you likely use a really old integration
so you need to Refund the Charge instead: https://stripe.com/docs/api/refunds/create
not really
you can't cancel a PaymentIntent if your code doesn't use PaymentIntent
you likely are on a multi-years old integration
The library might be up to date, not the way you use it
I assume your code uses ChargeService and such right?
We released the PaymentIntents API in mid-2018
Yeah so that's a multi-years old integration
ok
Since you never use PaymentIntents, there's no reason to use the Cancel PaymentIntent aPI in that case.
so keep using refund?
yes! Or migrate to PaymentIntents! But that's definitely a larger refactor