#LanGames

1 messages · Page 1 of 1 (latest)

frosty ospreyBOT
lime steeple
#

Hi there

pseudo wagon
#

Hello

#

so can you suggest how to control which webhook is called after I initiate Checkout session

lime steeple
#

Yep one second, checking on something

pseudo wagon
#

maybe it depends on the secret I set

lime steeple
#

No that doesn't really matter

#

So basically all of your endpoints that are listening for any type of event will receive that event on your account

#

So what you want to do here is actually differentiate the data coming from your two websites

#

And you only really need one endpoint

#

You differentiate the data by using metadata

pseudo wagon
#

yes

lime steeple
#

Then in your webhook handler you parse the metadata to know the site

pseudo wagon
#

I could use the metadata, right

#

so signing secret doesn't matter

#

but I guess each webhook endpoint must be initialized with its secret from the dashboard

lime steeple
#

Yes each endpoint needs the correct secret.

#

But the secret won't stop all events from either site going to both endpoints

#

Like I noted though, no real reason to use two endpoints if they are listening to the same event types.

pseudo wagon
#

I agree but they are two different sites

#

it is mess to handle both website payments from one of the sites