#Omri-refunds

1 messages ยท Page 1 of 1 (latest)

empty ruin
#

Hi ๐Ÿ‘‹ if you see a refund move into a pending state that is typically due to your account not having enough funds to refund the payment and we were unable to debit your connected bank account to cover the difference. The refund won't occur until the necessary funds are available, so you'll want to listen for webhooks to be notified.

empty ruin
#

I'm archiving this thread, but if there are additional questions or anything else that we can assist with, then please let us know in #dev-help. ๐Ÿ‘‹

lucid meadow
#

@hard cedar ๐Ÿ‘‹

hard cedar
#

@lucid meadow Hey, thank you, which webhook event should I need to listen for failed refund?

lucid meadow
#

In the rare instance that a refund fails, we notify you using the charge.refund.updated webhook event. You will then need to arrange an alternative way of providing your customer with a refund.

hard cedar
#

thank you

#

how can I test the charge.refund.updated webhook event failed refund?

#

on my local

lucid meadow
#

You can use Stripe CLI

#

Probably starting with stripe trigger charge.refund.updated then use fixture to simulate the failed scenario

hard cedar
#

thank you, sorry, I'm not sure how to use the fixture, I need to create a json file, how the file should look like for refund failed scenario ?