#nollix_api
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/1448814020709715988
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- nollix_api, 1 hour ago, 3 messages
- nollix_refund-webhook-events, 4 hours ago, 21 messages
- nollix_api, 20 hours ago, 9 messages
- nollix_refund-status, 1 day ago, 6 messages
- nollix_api, 1 day ago, 3 messages
- nollix_api, 2 days ago, 14 messages
and 2 more
Hi there
I think it is likely that we emit both events. Do you have an example refund failure I can look at?
no, I'm just trying to figure it out the whole logic behind the refund because I have to implement in the system
we have a test card you can try here: https://docs.stripe.com/testing#refunds
Also I'd recommend the docs here: https://docs.stripe.com/refunds?dashboard-or-api=api#failed-refunds
When I try a refund with the 4000000000005126 card, after the refund fails we send a refund.failed event but not refund.updated
ok thank you! Is refund.updated used for something? I thought that refund.updated is called when the status of the Refund Object changes.
Yeah I mean we send a refund.updated when a refund's status goes from pending to successful. I don't know why specifically we don't send it when a refund fails but probably because we have a specific event namespace for that happening. If we sent a refund.updated and refund.failed I think the payloads would be identical, so it wouldn't make any sense to send both
ok thank you
Is the refund.updated event triggered when the refund is canceled (so not failed) by the user/admin of the system?
๐ refund cancelled means its failed intentionally by the user/admin
if a refund is not failed by the user/admin but the refund is not successful, means it probably failed for other reasons like customer's bank not being able to process it
And if a refund failed, only refund.failed will be send. .updated is if there are other updates, like the ARN for example
so if the status of Refund object is "canceled" or "failed", the refund.failed is triggered (and not the refund.updated), right?
Yes you are correct. As long as a refund failed (whether its cancelled by the merchant or the bank couldn't process it), a refund.failed will fire. There will be no refund.updated
About the status of the Refund Object: is the refund.updated used for the status pending and succeeded?
when a refund change from pending to succeed, refund.updated will fire, yes
and for the other status the refund.updated isn't used and there are used other event like refund.created and the refund.failed, right?
i'm not usre what you meant by other status
but refund.created is when a refund is created
refund.failed is when a refund is cancelled or failed due to not being able to processed like what we discussed earlier
I mean the status of the Refund Object
I know, but in the context of events we'd want to be specific about the status we're referring to. That said, I think you've touched on almost all the refund. events here: https://docs.stripe.com/refunds#refund-events