#nobody_api-behavior
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/1282850206727147521
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I currently use webhooks for payment intent confirming and refunding, but the docs don't make it super clear which events are async?
@pastel pecan do you have a more detailed question (if so, best to put it in the original form so taht we can know your real question)
Gotcha
We don't really document much around what is async and what isn't.
Yeah i can see that lol
What's your real question?
I mean I would just like clarification on the general rules. For instance i create connected accounts, do i need a webhook for that?
Is it just payment is async?
A lot of this is much easier done by just testing than guessing
Creating an Account is synchronous, like anything payment. But then things can happen async after, such as identity verification, additional requirements, etc.
There's no account.created Event since the creation is synchronous, but as a Connect platform you definitely should have a Connect WebhookEndpoint to listen to Events on connected accounts and specifically listen for account.updated which are triggered async when new requirements are needed, things are verified, etc. see https://docs.stripe.com/connect/webhooks
nobody_api-behavior
ok interesting thanks ill do that. Its just a bit frustrating because i implemented refunding synchronously and then realized after the fact that it's probably asynchronous
Refunds are mostly synchronous, as in their creation succeeds/fails synchronously. But then they can fail asynchronously. We do document this clearly I think here: https://docs.stripe.com/refunds#failed-refunds
Yeahh exactly. Just to confirm my understanding, charge.refunded will fire when the refund sucessfully processes, and charge.refund.updated fires when it fails?
If so then i should be good thanks
not really. charge.refunded will fire when the Refund is created. We don't know if it succeeded yet, we won't know until days later usually. If it were to fail (which is rare) then charge.refund.updated is sent
that's so confusing ๐ญ
charge.refunded is fired when a refund is created, not refund.created
but ok i'll just listed in charge.refund.updated thx
refund.created is special and hapens for what we call "out of band refunds" without an original Charge.