#jinx-checkout-shipping
1 messages · Page 1 of 1 (latest)
Sure! It's just a simple json request.
Key: shipping_address_collection[allowed_countries] Value: US
what does that mean "a simple json request"
It's a post json to "https://api.stripe.com/v1/checkout/sessions" with parameters
our API doesn't support JSON
so I'm asking if you can share real code that I can help you with
or explain how you make our request
cc @queen ibex
My API Call is a curl but formatted as a json post.
-d "shipping_address_collection[allowed_countries]"=US
gotcha so allowed_countries is an array. So it should be -d "shipping_address_collection[allowed_countries][0]"=US
Awesome! It worked. Thanks man!
yay!
Oh btw How can I make multiple allowed countries?
you pass the same thing, it's an array, you just change the index -d "shipping_address_collection[allowed_countries][0]"=US -d "shipping_address_collection[allowed_countries][1]"=FR -d "shipping_address_collection[allowed_countries][2]"=CA ...
I see. Anyway I can just allow all countries at once?
Hi 👋 I'm stepping in. No you need to specify each country you plan to collect shipping address information from.