#Sylom
1 messages · Page 1 of 1 (latest)
So just to clarify, you want to prefill billing details in the checkout session prior to the customer visiting the page?
Prior to the customer visiting the checkout page, exactly.
Ah ok. Unfortunately that doesn't look to be possible
Here are all the available params: https://stripe.com/docs/api/checkout/sessions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Yeah I'm wrong actually
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you set the address on the customer object first then pass that customer id on the checkout session, it will prefill the address
Basically what I wanted to try then lol.
Recommend you test it out in test mode to see what the exact behavior is like
Will do. Thank you.
No prob
It worked. It wrongly filled the name for some reason but at least it worked without modifying previous billing adresses.
Gotcha. glad that worked for you