#sebastian-stancel-checkout-success
1 messages · Page 1 of 1 (latest)
You will need to use the success url templating to get the session id:
https://stripe.com/docs/payments/checkout/custom-success-page#modify-success-url
and then use that to retrieve the session details from the API via your server
Ok thanks, but I have some things that are not in the session details and would like to retrieve them on the success page how do I do that btw sorry for the late reply
you mean the line_items?
they're not included by default, you need to request them with expansion:
https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so expand[]=line_items when you retrieve the session
ok yeah I got it thanks
nice! you're welcome 🙂