#drmbrewer-checkout
1 messages · Page 1 of 1 (latest)
Hi there, a Customer is determined by an Id (Customer Id). If you already have a Customer Id, you can specify it while creating Session, and Stripe will link the Session with that Customer: 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.
You would want to list all Customer using List Customer API (https://stripe.com/docs/api/customers/list) filter by their email, then find that Id to create the Checkout Session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So I'd need to have a "form before the form"? The first form (provided by me) to ask for customer email, and then use that to create the second form (provided by Stripe) to which the customer is redirected?
To avoid creating new Customer, yes. Per the doc
If blank for Checkout Sessions in payment or subscription mode, Checkout will create a new Customer object based on information provided during the payment flow