#CrochetPomelo
1 messages · Page 1 of 1 (latest)
You can't unless you're doing something prior to creating the session to check that they are an existing customer. For example, requiring the customer to log in on your site first before checking out. And then storing the stripe customer id in your database mapped to their username
Passing the customer param when creating a session is how you'd re-use an existing customer object: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Got it, thanks