#yingwg-checkout-customerupdate

1 messages · Page 1 of 1 (latest)

lapis larkBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

primal stag
#

yingwg-checkout-customerupdate

#

@exotic haven yes that's expected behaviour. It doesn't make sense to pass customer_update as a parameter if you aren't passing a real existing Customer id cus_123 in the customerparameter too

exotic haven
#

I added that because I got this error ````{
"statusCode": 500,
"message": "Automatic tax calculation in Checkout requires a valid address on the Customer. Add a valid address to the Customer or set either customer_update[address] to 'auto' or customer_update[shipping] to 'auto' to save the address entered in Checkout to the Customer."
}```

#

so you only allow set this field to checkout if customer id is absent?

#

we have a 1:1 mapping from stripe customer to user account

#

we don't have user name and address upon account creation,

#

so we need to add that when user create first checkout session and provide credit/address infomation

primal stag
#

I'm sorry I don't follow what you are describing unfortunately.

exotic haven
#

anyway, just one question, if we set customer_id when create a checkout session, do you allow us to set customer_update field?

lapis larkBOT
primal stag
#

yes