#brunofidelis.web
1 messages · Page 1 of 1 (latest)
Hello
You do want to use checkout.session.completed but you also want to retrieve the Checkotu Session ID when you receive that and then expand line_items (see: https://stripe.com/docs/expand for how this works).
What I need is that every approved purchase of the product "PRODUCT NAME" the webhook sends the email and the product ID, I wanted to know which best event I can use that has this data.
Yep I just told you how to do that above. You get that data from line_items (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items) within a Checkout Session object which you get from checkout.session.completed
However it isn't provided in the Webhook as it must be expanded