#plzbepatientihasautism

1 messages · Page 1 of 1 (latest)

spring isleBOT
fierce stump
#

So you'd need to make an API call to create a Customer with the collected data, then pass that cus_xxx to your session creation call

past oar
#

oh that's a convenient approach

#

but can i do something about the local pickup scenario

fierce stump
#

I guess in a pickup scenario you want to disable shipping address collection on the page?

past oar
#

yes but i hardly see it possible

#

as the user selects local pickup it doesn't make sense asking the user to fill out the shipping address regardless

fierce stump
#

Then you'd just have some logic in your code that omits the shipping_address_collection parameter on session creation if your customer selected 'local pickup'

spring isleBOT
past oar
#

i have the shipping_address_collection set to ["US" ] as the products can only be shipped to US for now

fierce stump
#

Ok, then just remove that from your API requests if your customer selects 'local pickup' in your application

#

That will prevent the fields from showig on the payment page

past oar
#

ok thanks for the tip I'll give that a shot