#PARAS DOCS-checkout

1 messages · Page 1 of 1 (latest)

outer silo
split trench
#

there is two option auto and required

outer silo
#

Some payment method require a billing address. When that happens, the Checkout Session will automatically ask for it. So it's not possible to disable the billing address.

#

there is two option auto and required
Yes, you either always display the billing address, or only display it when it's required. It's not possible to never show it.

split trench
#

and how can i create session with customer id

outer silo
split trench
#

what information required to create customer?

outer silo
#

If you don't pass a customer ID, then the Checkout Session will automatically create one for you.
If you want to create a customer yourself, use this: https://stripe.com/docs/api/customers/create and all parameters are optional

split trench
#

like when user login in site i create customer and save it on user database and in session i fetch it , is it right way?

#

i just need customer id for future billing portal session

outer silo
#

This is completely up to you. But yes you could create a new Stripe customer every time someone register to your website/app, and then when they want to pay for something pass their customer ID to the checkout session.