#magoware_16537
1 messages · Page 1 of 1 (latest)
hi there!
Hi
all events of the same type will go to the same webhook endpoint
the product itself will have to impact on this.
how?
i dont want to send the call at all to the webhook 2 if the client pays product 1
which event are you listening to exactly?
no, it's in "developper": https://dashboard.stripe.com/test/developers
event: checkout.session.completed
and you have multiple webhook endpoint listening to that event?
yes
then each endpoint will receive all checkout.session.completed event. that's how Stripe works
so you'll have to write custom code to process the events differently based on the product
ok one more question please
which event sends the customer_reference_id
and which event indicates that tha payment is succesfull
if you set a customer_reference_id, then the checkout.session.completed should contain this info.
and which event indicates that tha payment is succesfull
if you are using Checkout Session, then it'scheckout.session.completed
that's the event we recommend listening to yes.
listen to checkout.session.completed, and write some code to check the product being bought. if it's product A, do something. if it's product B, do something else.