#kafkaesque_api

1 messages ¡ Page 1 of 1 (latest)

half socketBOT
#

👋 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/1507466328473211001

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lone wyvern
#

*I'd only like to send the success notification when I have certainty

#

sorry, long week

narrow harbor
#

hi there, looking into this

#

can you share which doc you're looking at?

lone wyvern
#

The behavior on the docs also matches the behavior I've seen on Stripe btw so I'm sure it's correct

narrow harbor
#

thanks - looking into this

#

as far as I'm aware, listening for refund.updated Events with status: succeeded is a reliable way to know that a refund was successful

half socketBOT
narrow harbor
#

the reason you can't rely on the refund object in the response after creating it is because they are processed asyncronously

#

but webhooks should take care of that

lone wyvern
#

no, im talking about async too

#

Lemme grab an example

vestal sphinx
#

hi there, taking over for janet as they had to step away. the issue is that the succeeded status represents Stripe successfully sending the refund request to the customer's bank. the bank can then reject that refund later (for example if the customer closed their account, or there was a problem with the customer's card). this can take up to 30 days after the refund is posted. we document this here: https://docs.stripe.com/refunds#failed-refunds

lone wyvern
#

Okay, and there's no reliable way to know if a refund was actually successful?