#mrsabz
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I believe you're looking for the payment_intent_data.shipping parameter, but please let me know if that doesn't let you do what you're hoping:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-shipping-address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think this is right , let me test it
1 more thing
so when I use payment_intent_data.shipping I do not collect shipping data in stripe checkout anymore
but I will still have information saved about shipping details right?
but the thing is I can not input postalcode and such
Yes, the shipping information will still be there. I'm unsure offhand whether the Checkout Session will still allow the customer to edit the provided shipping address, I would recommend testing to confirm that part.
Can you elaborate on not being able to input postal code?
Are you encountering an error that is preventing that?
That hash has a .address.postal_code field:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-shipping-address-postal_code
ooh
thank you very much
1 more thing
why does it let me choose shipping country when I already passed it?
Were the other shipping fields editable?
other shipping fields do not even appear
Gotcha, I think that's the billing country then rather than the shipping country
okay thanks