#Rachid-connect-webhook

1 messages · Page 1 of 1 (latest)

narrow cloak
#

Hey! Can you share the ID of the webhook endpoint? we_xxx

vast night
#

sure

#

we_1KVb9dKTTpb3WzrmC0tVoEWO

#

(it's a test mode)

narrow cloak
#

Are you checking this box?

vast night
#

yes i have

#

i will create a new one for example

narrow cloak
#

Let me test

#

Works for me

vast night
#

ALL Direct ....

narrow cloak
#

Sorry, don't mind me just created/deleted one in your account

vast night
#

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

narrow cloak
#

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?

vast night
#

and different stripe account plugged to this endpoint

#

but when i receive a webhook event, i don't know from which account it came

narrow cloak
#

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

vast night
#

ohh i can do that ?

narrow cloak
#

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

vast night
#

o k il will try it now

narrow cloak
#

(obviously you need to hard code the account ID)