#nickdnk-charge.refund.updated
1 messages · Page 1 of 1 (latest)
Also it seems there is no failure_reason that matches "insufficient funds on your Stripe account"
Good question. I am not immediately sure. Looking in to this
It looks like this may be indicated by the Refund's status being set to pending https://stripe.com/docs/connect/charges#refund-creation
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
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
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
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.
Yeah the important part is just getting our data back to "this was not actually refunded"
Followup
What can cause a refund status of canceled
Docs don't seem to mention it
They only say you cannot cancel a refund
Checking in to this in a sec. Can you link me to that doc?
Thank you
I found this
pi_1GLRbWIXmFfWZ4Ev2IKG5kZA
As you can see, a month after the refund attempt it failed
Maybe that can help you investigate
Yes thank you
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
As in you are wondering if canceled can mean partially refunded or something?
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
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, orfailed. For other types of refunds, it can bepending,succeeded,failed, orcanceled.
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.
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
Yep, that's 100% true, but only for card refunds.
Our docs could be improved here for sure.
If you just elaborate a little on https://stripe.com/docs/api/refunds/object#refund_object-status it would go a long way I think
Yep, will flag internally!