#Stix
1 messages · Page 1 of 1 (latest)
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
Ok, thanks
Theses are the events for subscriptions
okay thank you, i was looking at payment intents! this makes more sense
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.
Is the payment from a subscript a paymentintent.succeeded or an invoice.paid?
You'll get both payment_intent.succeeded and invoice.paid.
ahhhh okay
more worried about someone using email_one for my service and email_two for stripe - i suppose i make people enter their stripe email if they use different ones?
What do you mean by email for stripe ?
whatever email exists in the customer.email if they checkout via a https://buy.stripe.com/...
can i make a customized link?
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.
https://stripe.com/docs/payments/checkout/custom-domains Yes you can use your own domain.
okay thanks ill look into this