#Colby S
1 messages · Page 1 of 1 (latest)
Hi there
Can you provide that Checkout Session ID
The cs_test_xxxx
And you are stating that during the Session you aren't seeing the shipping details at all, correct?
I think you are a bit confused here as you don't pass shipping_details as a parameter to a Checkout Session
Can you clarify exactly what you are trying to do
cs_test_a1t4zUZAsdhQJHnaLPjRlKPy0lm0OT7e43tvnFSH5zdOyOg30C37e2p2cu#fidkdWxOYHwnPyd1blpxYHZxWjA0SW5RRmdHSl8wRjNLMzBVbF9nU21VfWF0PDVUdFFdY3FHc2xHV303aklWMUpqQGtUTE1XfD1yYnA0SkBJfHJ9SXZrZz10f3BpSWhLZzZQYm1ITWgyazE8NTVjU0dKdDY2fCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
Yeah I am trying to get those details in postman to display through this session
But this is what I am getting
Gotcha. Yeah, you don't supply shipping details ahead of a Checkout Session. You can force collection of them using the shipping_address_collection parameter. But you can't pre-fill them.
https://dashboard.stripe.com/test/logs/req_qyxUAMYEFytwgr is the creation request for the Session you noted above
You can see that in that Session creation shipping_address_collection: { allowed_countries: ['US'] } is not being set
So you will want to check on how you are passing shipping_address_collection.allowed_countries to postman
Here is the API Ref for that: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-shipping_address_collection
Gotcha, is there a way for me to test this in postman? Probably retrieving the object? Before I go and code the front end to compete that checkout session
I'm not exactly sure what you mean? You should be able to use postman to create a Checkout Session that collects shipping address, yes.
I am just wondering if those fields would then get displayed on the hosted page so I can fill it out then make a payment
When I create that checkout session
Yep as long as you request shipping address collection correctly then shipping address collection will show up in test mode and you can fill it out for testing purposes
Awesome thank you!