#pvl26
1 messages · Page 1 of 1 (latest)
You'll need to make an additional API request to retrieve the line items from the checkout.session.completed event: https://stripe.com/docs/payments/checkout/fulfill-orders#handle-the-event
There's an example in that section. The line_items field is includable by default so it needs to be explicitly requested
Thanks, it's exactly what I wanted, cheers
One more thing, does the checkout.session.completed event get sent only after the payment succeeded?
It's only sent after the session is confirmed. In some scenarios with delayed PMs that may not mean the payment has succeeded yet: https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification
ok, thank you for the help and links