#Gitanes
1 messages · Page 1 of 1 (latest)
heya @bleak timber! typically you should have a login id, and already have the customer id in your database which is linked to the login id right?
why would you need to fetch the customer id separately?
well at the moment each payment by the same customer creates a new customer in stripe
so stripe support told me i should specify the customer id when creating the session
but i don't know how to fetch the customer id
i need to do stg like this js const session = await stripe.checkout.sessions.create({ customer_id: 'cus_123', payment_method_types: ['card'],
each payment by the same customer, shouldn't create a new customer in Stripe - i'm not too sure what's the context here
When you have a new user (on your website), do you create a Customer to link to that user?