#Cyril Dave
1 messages · Page 1 of 1 (latest)
Hi there!
How do you accept payments? Chekcout Session, Payment Element, something else?
Note that Stripe allow you ot create customers with any emails, we won't de-duplicate customers based on their emails.
So if the same user makes multiple purchases, it would be up to you to reuse the same customer instead of creating a new one.
hi I use this api endpoint:
https://api.stripe.com/v1/payment_links?line_items[[0]][[price]]=[price id]&line_items[[0]][[quantity]]=1&after_completion[[type]]=redirect&after_completion[[redirect]][[url]]=[webhome url]/services?id={CHECKOUT_SESSION_ID}&metadata[[price_id]]=[product name]
Ha yes, Payment Links will alwyas create a new customer object
what should I use instead to not create new customer object?
If you want to have more control over this, you should use Checkout Session instead
You can learn about Checkout Session here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
thanks