#eoghanobrien

1 messages · Page 1 of 1 (latest)

crude mothBOT
unique roost
#

You could just not collect shipping address

#

There's no way to prepopulate it

timber cliff
#

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?

unique roost
#

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

timber cliff
#

Okay, will do, is there any way to turn off the checkbox for Billing address is same as shipping on the checkout screen?

latent musk
#

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

timber cliff
#

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?

latent musk
#

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?

timber cliff
#

yes, exactly

#

I don't want shipping address to overwrite billing address

latent musk
#

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

timber cliff
#

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

latent musk
#

Correct. Checkout doesn't have that level of customizability

timber cliff
#

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?

latent musk
#

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