#OptimalSurprise-webhooks
1 messages · Page 1 of 1 (latest)
hi! AccountLinks and Checkout are two different things so I'm not sure how to answer that.
For accounts you'd listen to the account.updated event to monitor the onboarding of the account, for Checkout, you use checkout.session.completed to know when a payment is complete
ah apologies, mistaken it
is account.updated fired even when creating the account for the first time?
how about account deletion?
also this is for stripe connect if that makes a difference
well you don't need an event necessarily, since you just created the account by calling the API, so you know it exists.
As for knowing when the account holder has finished going the account link, the easiest way is that they are redirected to the return_url at that point and you can call the API to retrieve the account and sync its current state, and then use account.updated to be notified of any future changes
that fires an account.application.deauthorized event https://stripe.com/docs/api/events/types#event_types-account.application.deauthorized
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.