#rilsen-customerid
1 messages · Page 1 of 1 (latest)
yes but how does stripe know a customer coming back to the checkout page is the same customer?
tripe generates a customer_id for me automatically but does that mean a user could have multiple stripe customer id's?
This is correct, if you do not specify the Customer id for Checkout, usually a new Customer id is generated https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
i see, so I should pass the customerId to the checkout session to make sure stripe knows its the same customer
There is a new field that had been introduced recently to allow guest customers without creating new Customer objects (except for subscriptions) https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
i see, so I should pass the customerId to the checkout session to make sure stripe knows its the same customer
Correct! 🙂