#Cyril Dave

1 messages · Page 1 of 1 (latest)

silk swiftBOT
abstract grotto
#

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.

glad charm
#

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]

abstract grotto
#

Ha yes, Payment Links will alwyas create a new customer object

glad charm
#

what should I use instead to not create new customer object?

abstract grotto
#

If you want to have more control over this, you should use Checkout Session instead

glad charm
#

thanks