Extract the connected account ID from a webhook event, when present.
Events from a Connect webhook endpoint carry the connected account they
happened on (event.account). Pass it to stripe.forAccount(id) to act on
that account. Events on your own platform account return undefined.
Extract the connected account ID from a webhook event, when present.
Events from a Connect webhook endpoint carry the connected account they happened on (
event.account). Pass it tostripe.forAccount(id)to act on that account. Events on your own platform account returnundefined.