#Senhor-checkout-webhook
1 messages · Page 1 of 1 (latest)
hello
you listen to the checkout.session.completed webhook event right?
you're doing a one time payment, is that right? or a Subscription?
@dawn pewter Hi! I reopened your thread.
Got it! Then you should listen to the checkout.session.completed event, and then use expand to retrieve the line_items as shown here: https://stripe.com/docs/expand#includable-properties
But did you use the code I shared? By default the line_items is not included in the event. You need to retrieve the Checkout with expand: ['line_items'] https://stripe.com/docs/expand#includable-properties
so i listen for the webhook event but i don't read the data from the webhook payload, but i have to fetch it by get call?
what's the use of the webhook data ?
so i listen for the webhook event but i don't read the data from the webhook payload, but i have to fetch it by get call?
In this case, yes
what's the use of the webhook data ?
In many cases the webhook payload contains what you need. Unfortunately it doesn't contain theline_itemsso you need to make an extra API call in this case