#kekko7072
1 messages · Page 1 of 1 (latest)
Hi there
Are you asking if you can create a Checkout Session by only setting the description?
Or can you tell me more about exactly what you are trying to do?
I have a backend in firebase function and I want to create a checkout session for web where user can register a payment method and the customer is created
At the moment I create the customer before using another firebase function calling stripe js sdk
But now I need to register also the payment method so I thought would be better to do it using the checkout session
I already use checkout session to pay in web but now we have a new feature where customer Will pay at the end so I need to create custode andregister card all in one and setup payment for off session and future usage
So you can create the checkout session in setup mode if you only want them to set up payment
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And this will create a customer also?
Yeah just make sure you set customer_creation to always: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.