#PARAS DOCS-checkout
1 messages · Page 1 of 1 (latest)
there is two option auto and required
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.
and how can i create session with customer id
You mean how to pass an existing Stripe customer when creating a Checkout Session?
There's a customer field: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
right
what information required to create customer?
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
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
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.