#gabrielctavares
1 messages · Page 1 of 1 (latest)
Hey there
If you register the customer prior to the Session then you want to create the Customer object when you register and then pass that Customer ID to the Checkout Session on creation: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
I need to deal with a customer's Metadata, that's why I register it first and pass the ID in the Session, but my question is in this registration, is there any endpoint that doesn't register a new one? just return the customer with informed email
Ah
I see
No, we don't de-duplicate by default. So yeah you need to list your Customers by email to see if one already exists: https://stripe.com/docs/api/customers/list#list_customers-email
Ok, but in CustomerCreateOptions there is a field called Validate, can you tell me what it does?
In C# library
That has to do with whether a card is validated when attached to a Customer. I recommend ignoring it.
It defaults to true
Ok, thanks :))