#MarkoBoras
1 messages · Page 1 of 1 (latest)
You want the items? Or the total?
all of it
I have this scenario
User buys ticket through Stripe Checkout but he isn't registered on my site.
I want to send him to email link to ticket.
I need to generate ticket data from payment intent.
What exact data do you need on the ticket?
You have most of it in the Checkout Session object: https://stripe.com/docs/api/checkout/sessions/object
You need to expand line_items to see them: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
You can also expand the payment_intent to see the payment data: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
can I expand those fields during creation of checkout
or do I need to do that in webhook where I retrieve checkout session?
In the webhook
Happy to help. Please, let me know if you have any other questions.