#haroon

1 messages · Page 1 of 1 (latest)

fleet sandBOT
light summit
#

Hi can you summarize what you need help on?

#

Toby had to step out

bitter arch
#

I want to cancel all uncaptured charges

#

through stripe API

light summit
#

Ah so you're using our legacy Charges API?

bitter arch
#

yes

#

I have created a charge with capture field set to false

#

Now, I wanted to cancel all of them because customers are getting notifications due to this

light summit
#

Not possible with Charges

#

Recommend you switch to PaymentIntents

#

We have a cancellation endpoint for PaymentIntents

bitter arch
#

so what should we do now as I want to cancel all uncaptured charges

#

I have charge id I just want to cancel charges

light summit
#

You can't

#

You'd need to switch to PaymentIntents to get that functionality

#

Currently you'll just need to wait for the authorization to expire

bitter arch
#

Is there any way to expire authorization?

light summit
#

Expiring authorization and cancelling the payment are the same thing

#

So no

#

That's why it's recommended to use payment intents

#

Charges are a legacy flow, and our integration guides haven't used them for quite some time

bitter arch
#

Ok Thanks for your help here.

light summit
#

No problem

bitter arch
#

Is there a way to delete a charge?

light summit
#

No