#nickdnk-charge.refund.updated

1 messages · Page 1 of 1 (latest)

elder siren
tawny stump
#

Also it seems there is no failure_reason that matches "insufficient funds on your Stripe account"

elder siren
#

Good question. I am not immediately sure. Looking in to this

tawny stump
#

So I’ll have to listen for the webhook and check if it goes from pending to failed?

#

Because it will if enough time passes

#

That’s what happened last year because of Covid

#

Or canceled perhaps

elder siren
#

Ah I see. I misunderstood your question a bit. Looking in to what that will look like

#

Okay a little more clarification: have you confirmed in some way that that refund moving to failed was because of insufficient funds for long enough?

#

Or by will happen if enough time passes do we just mean that if a refund is pending long enough, one of the other things that may cause a refund to fail may happen? In that case the webhook check for pending -> failed makes sense

tawny stump
#

I cannot be certain. What I know is that the refunds went back to “not refunded” after a long time

#

Sorry the charges

#

Yes okay

#

I think that will suffice

#

Basically I can just check for failed

#

It’s either failed, succeeded or not failed yet in my case

#

Meaning both succeeded and failed are terminal states

elder siren
#

Awesome glad that that helps. Yes I that makes sense. If it goes to failed we recommend you find an alternative way to refund the customer.

tawny stump
#

Yeah the important part is just getting our data back to "this was not actually refunded"

tawny stump
#

Followup

#

What can cause a refund status of canceled

#

Docs don't seem to mention it

#

They only say you cannot cancel a refund

elder siren
#

Checking in to this in a sec. Can you link me to that doc?

tawny stump
elder siren
#

Thank you

tawny stump
#

I found this

#

pi_1GLRbWIXmFfWZ4Ev2IKG5kZA

#

As you can see, a month after the refund attempt it failed

#

Maybe that can help you investigate

elder siren
#

Yes thank you

tawny stump
#

The core of my question is: Is failed equal to canceled from a perspective of "this refund does not affect the net value of a charge"

#

failed does not affect the charge, but I'm not sure about canceled

#

I mean I would assume

elder siren
#

As in you are wondering if canceled can mean partially refunded or something?

tawny stump
#

I mean if the refund affects the attributes of a charge

#

because pending does

#

even before succeeded

#

I think

#

And going to failed then "refunds the refund" so to speak, meaning the net value of a charge goes back to what it was before a refund. I'm wondering (assuming) that canceled does the same thing.

#

And then I'm wondering how you can cancel a refund

#

When the docs explicitly state that you cannot

muted tree
#

Hello! You cannot cancel credit card refunds, but you can cancel refunds for some other payment types: https://stripe.com/docs/api/refunds/object#refund_object-status

Status of the refund. For credit card refunds, this can be pending, succeeded, or failed. For other types of refunds, it can be pending, succeeded, failed, or canceled.

If you're only dealing with cards your Refunds will never be canceled.

#

Card refunds might be failed for various reasons, such as the card/account we attempt to apply the refund to has been closed, for example.

tawny stump
#

Aha.

#

I was thrown by

#

Refunds can’t be canceled after they’re issued. Disputes and chargebacks aren’t possible on credit card charges that are fully refunded.

#

At the start of

muted tree
#

Yep, that's 100% true, but only for card refunds.

#

Our docs could be improved here for sure.

tawny stump
muted tree
#

Yep, will flag internally!