#Rachid-connect-webhook
1 messages · Page 1 of 1 (latest)
Are you checking this box?
Sorry, don't mind me just created/deleted one in your account
The issue is you don't have Connect configured: https://dashboard.stripe.com/test/connect/accounts/overview
oh
but i have to pay for use Connect ?
in fact
i need only to get the stripe-account in my webhook event
because a have a lot of stripe account plugged to the same webservice
i need to know which account call my webservice
If you're not using Connect then the account ID will always be the same
So you're using a single webhook endpoint across multiple Stripe accounts?
yes, i have one endpoint -> dev.aucoeurdelaprecarite.com/stripe
and different stripe account plugged to this endpoint
but when i receive a webhook event, i don't know from which account it came
Got it. Unfortunately events sent to non-Connect webhooks don't contain the account ID
My recommendation would be to add a query parameter to the webhook endpoint URL, then you can parse it in the handler: dev.aucoeurdelaprecarite.com/stripe?account=acct_xxx
ohh i can do that ?
I think it should work. Don't see why not
So acct_xxx would be unique for each webhook on the different accounts
But with one single wbehook handler
o k il will try it now
(obviously you need to hard code the account ID)