#Stix

1 messages · Page 1 of 1 (latest)

silent edgeBOT
sand jetty
#

Hi there, yes you can use customer email to associate a customer in your own record

#

If the payment link is for subscription, stripe will also create a customer object upon checkout session completion. You can use the customer.id which is an unique identifier

opal flax
#

Ok, thanks

sand jetty
#

Theses are the events for subscriptions

opal flax
sand jetty
#

If you want to avoid duplicate customer (email is not unique after all), you can consider using Checkout Sessions API directly. Here's how it works
2. Create a customer before hand, and save the customer.Id to your DB
3. Pass the customer ID to the CheckoutSession creation API
4. Upon Checkout completion, the subscription will be associated to the customer.

opal flax
#

Is the payment from a subscript a paymentintent.succeeded or an invoice.paid?

sand jetty
#

You'll get both payment_intent.succeeded and invoice.paid.

opal flax
#

ahhhh okay

opal flax
sand jetty
#

What do you mean by email for stripe ?

opal flax
#

can i make a customized link?

sand jetty
#

If that's the concern, you should really use CheckoutSession API so that you can prefill the email address field and make it non-editable.