#Sylom

1 messages · Page 1 of 1 (latest)

terse pilotBOT
zealous basin
#

So just to clarify, you want to prefill billing details in the checkout session prior to the customer visiting the page?

covert spindle
#

Prior to the customer visiting the checkout page, exactly.

zealous basin
#

Ah ok. Unfortunately that doesn't look to be possible

covert spindle
#

Hmm. I see.

#

If I update the customer's adress before the session, will it be stored inside the session entity or will it stay linked to the customer?

zealous basin
#

Yeah I'm wrong actually

#

If you set the address on the customer object first then pass that customer id on the checkout session, it will prefill the address

covert spindle
#

Basically what I wanted to try then lol.

zealous basin
#

Recommend you test it out in test mode to see what the exact behavior is like

covert spindle
#

Will do. Thank you.

zealous basin
#

No prob

terse pilotBOT
covert spindle
#

It worked. It wrongly filled the name for some reason but at least it worked without modifying previous billing adresses.

zealous basin
#

Gotcha. glad that worked for you