#OptimalSurprise-webhooks

1 messages · Page 1 of 1 (latest)

autumn robin
#

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

robust minnow
#

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

autumn robin
# robust minnow is` account.updated` fired even when creating the account for the first time?

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

autumn robin
robust minnow
#

thanks for this, this makes sense

#

appreciate the help

#

using return_url, what should the client side send back to the API call to make sure the process was completed successfully (as opposed to the client just leaving the onboarding flow)?

#

ok nvm