#cris-moshtix_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1361703144563675369
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
refund.updated is only sent in cases where the refund is update, for example getting the refund reference number in the example you shared
WHat exactly are you trying to do that is not working like you expect?
I need to listen to webhooks for refund completions. I got told by your senior manager that "refund.updated" would suffice. I can also tell you that some webhook currently firing "refund.updated" are correctly doing what I'd expect and completing the refund on my end. It's the first time I hear this event is for a refund updated, like its details, not its completion status.
Do you have an example that is not sending this?
It might be that it is pending for longer than you expect, and the update comes later
or it might not require any updates and is considered successful immediately
Actually, looking better at one of the refunds, I got first a charge.refunded, then the refund.updated twice. So I think I'm always getting a charge.refunded event. Are u suggesting all I need to listen to is charge.refunded event only? All I care is the refund completion event.
There should always be charge.refunded and refund.created -- whether there is refund.updated depends on whether there are updates required, as i explained
You likely need to listen to two event types, refund.updated plus one of the others to be able to track refund success
since it might be on creation or might be later
Not all refunds work the same way
Ok, I have a few questions then:
- "refund.updated depends on whether there are updates required". What do you mean? Am I supposed to provide any kind of info when receiving this event?
- Are you saying sometime refund.created is all I'm going to get? No other events? If yes, how do I know this event is all I'm going to get?
Hi taking over here as synthrider has to step away
- Recommend reading https://docs.stripe.com/refunds#refund-events there's more info there. You don't provide any info. I'm not sure what you mean by that.
- There will be other events like charge.refunded. My colleague was just explaining that refund.updated isn't always sent
- Clear
- I've read the doc you linked. I see also refund.failed. Is this sent instead of charge.refunded in case of a refund being declined?
Yes that's correct
Ok, thanks for your help