#harvey
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I believe you're looking for the shipping_details.address field on the completed Checkout Sessions:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-shipping_details
But please let me know if that doesn't hold the data you're looking for.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for me, the field was null
i could only get the value if i called the retrieve customer customer api with the customer id
i am passing in the shipping address to the checkout session by supplying a customer by the way
Oh, so the Checkout Session isn't collecting the shipping address itself? Can you share the ID of an Event where you were expecting to see shipping address details but didn't?
evt_1MU9tqBeoaUlCXy88RRcihCT
Thank you for that. It looks like as you mentioned the Checkout Session is not collecting the shipping address information, so it is expected to not be included in the session object.
If you would like to pass the shipping address details from your Customer to the Checkout Session when you create it, then you may want to leverage metadata to allow you to include additional information on the session object:
https://stripe.com/docs/api/metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.