#RogueOne
1 messages · Page 1 of 1 (latest)
Save what ID? What are you trying to do that you can't do?
i want to save certain data in my db about purchase when the checkout is success
i tried with metada, but when checkout is success it is null
What metadata, where are you looking specifically? Can you share example checkout session IDs or event ID that you're looking at where you expect to find metadata?
Hey sorry for the delay, i missed your message here
Ah, so the metadata is within the line items then
Ok, then to retrieve this you need to expand the line_items when retrieving the Checkout session:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
https://stripe.com/docs/expand