#sinduri
1 messages · Page 1 of 1 (latest)
hi there! are you trying to prefill Stripe Checkout? It's not possible to pass the billing / shipping address details entered on the WooCommerce Checkout page to Stripe Checkout. The Billing Address is prefilled if certain criteria are met i.e.
ID of an existing Customer, if one exists. In payment mode, the customer’s most recent card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. In subscription mode, the customer’s default payment method will be used if it’s a card, and otherwise the most recent card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.
shipping address can't be prefilled
I found shipping.address parameter in session object like shipping.address.city, then this is for what?
Is this a request parameter or response parameter?
i assume you're referring to this parameter : https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-shipping-address. This list displays all the parameters in the Checkout Session object.
You can't create a Checkout Session with a shipping address : https://stripe.com/docs/api/checkout/sessions/create
Okay thank you!
I need to step away so I’m going to archive this thread. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
👋 stepping in. Actually you can specify that parameter: 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.