#adhi14058

1 messages · Page 1 of 1 (latest)

harsh hawkBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vapid imp
#

👋 What are your queries?

lavish jewel
#

Heyy, Thanks for helping me in advance..
I am using nodeJS SDK. So lets say i call refund function, and the API fails, would the event 'charge.refund.updated' be emitted in the webhook

#

I am listening to this event, just to handle refund failure

vapid imp
#

charge.refund.updated will only be sent when the refund was created and failed later. It shouldn't be created when the refund request failed immediately.

lavish jewel
#

is there a possibility that thecharge.refundedevent is called and almost instantly refund failed and charge.refund.updated is called. The reason i am asking is because, we have some intensive logic in the charge.refunded webhook handler, and I would really want the charge.refund.updated handler run only after the first webhook

vapid imp
#

This might be possible depending how fast issuer responds to the refund failure

lavish jewel
#

Makes sense. Thanks
I have one more doubt. so when we call the refund API.. lets say the refund has not reached the customer and is in processing but API returns 200. how would i know the money really reached customer.
is charge.refunded called only when money is really sent or is it called even if the status is pending

vapid imp
#

charge.refunded was sent when Stripe sends the successful request to network (such as Visa / MasterCard... etc) to process the refund

#

In case if the issuer fails the refund, then charge.refund.updated will be sent

#

However, this is the rare instance

lavish jewel
#

when charge.refunded is called, there is really no guarantee that the money reached the customer.
do we have any event which we can listen to where we really know the money reached the customer

vapid imp
#

Unfortunately, there is no such event for this scenario

lavish jewel
#

Ohh.. No problem. But thanks for confirming