#eoghanobrien
1 messages · Page 1 of 1 (latest)
You could just not collect shipping address
There's no way to prepopulate it
You need an address for automatic tax though. Billing or shipping will be used depending on the situation: https://stripe.com/docs/tax/checkout#create-session
You could just not collect shipping address
In some instances, using the same customer, I have to collect shipping address, since we ship a physical product. In other instances we sell saas services and don't ship anything but our shipping product (which could be a totally different address) is now affecting our saas purchase because Stripe Tax will use shipping address if it has one.
Can I just clear the shipping address after purchase?
Some fields in our api support being cleared if you set them to an empty string, but not sure off-hand if shipping address is one
You can try it out in test mode though
Okay, will do, is there any way to turn off the checkbox for Billing address is same as shipping on the checkout screen?
Hi there 👋 taking over, as my colleague needs to step away
is there any way to turn off the checkbox for Billing address is same as shipping on the checkout screen?
Unfortunately not
That is very unfortunate. What's the logic there?
What can I do if I want to avoid setting the shipping address on the billing address? Are there other alternatives?
To be clear, it sounds like you do want to collect billing address ***and *** shipping address, but you don't want to allow billing and shipping address to the same, is that correct?
Gotcha, yeah that's not something you can configure in Checkout. You would need to build your own custom payment flow to be able to have that type of validation in the form
That's fine, I have the custom validation built in the form, how would you suggest I handle the Stripe side then?
Oh I see, you mean I can't use Checkout at all
Correct. Checkout doesn't have that level of customizability
In Checkout it looks like I can set customer_update.name and customer_update.address to never and customer_update.shipping to auto THEN after successful purchase I can clear the shipping address - does that sound correct to you? Do you see any issues with that?
I don't think you can delete shipping address on the Customer. I believe you can only overwrite it. Let me double-check for sure though
Okay, I just tested setting the shipping details on the customer to empty strings, and it successfully unset the values on the Customer object, so it sounds like your method would work just fine