#fislerdata
1 messages · Page 1 of 1 (latest)
What do you mean by "specify which one I want to use in the checkout settings"? If you're asking whether it's posisble to have certain types of checkout sessions only send events to one webhook endpoint then that's not possible
If they purchase one item, I'd like to use webhook1 but if they make a purchase of another item (which is in a separate area of the website), I would like to trigger webhook2.
So I was hoping there was a setting in Checkout like:
$checkout_session = \Stripe\Checkout\Session::create([
'mode' => 'payment',
'webhook' => 'https://www.example.com/webhook1.php',
Yeah that's not possible today - a webhook endpoint will get ALL events of whichever types you have enabled for it
Do you recommend that I put something in the metadata of the checkout session so that the webhook looks for that metadata and determines whether the webhook should or should not process? Or is there a better way?
Yeah metadata would be great way to do this