#eoghanobrien-checkout-shipping
1 messages · Page 1 of 1 (latest)
Hello 👋
Good question! Not sure, let me check..
I should add that I need to use automatic_tax_enabled=true for my implementation also.
One alternative I was thinking of was to collect and provide the shipping address when creating a checkout session which doesn't seem to be an option here
if you set customer_update[shipping] to never, do you get an API error?
@vital pike ?
Sorry, missed this
Yes, I get an error:
Automatic tax calculation uses fields saved on the Customer. To collect a shipping address with
automatic_taxenabled, setcustomer_update[shipping]to 'auto' to save the shipping address back to the Customer.
I am currently collecting the shipping address prior to sending the customer to Checkout, I'm doing that by creating/updating a customer's address. I was hoping for an alternative to that but I can't see one.
Quick question: are you setting pre-collected shipping address to customer.address or customer.shipping.address ?
I tried creating a Checkout Session for a customer with shipping address pre-set & automatic_tax enabled. It didn't ask me to set customer_update[shipping] to auto
I am currently collecting the shipping address prior to sending the customer to Checkout, I'm doing that by creating/updating a customer's address. I was hoping for an alternative to that but I can't see one.
Ah my bad. I think I read your response incorrectly. So it seems like you're already doing that.
eoghanobrien-checkout-shipping
My take is that when buying as a gift it'd be better to use a separate customer for it
Yeah, I was afraid of that, what happens with billing in that case? The billing and credit card information would be shared across two customer objects?