#McRenald
1 messages · Page 1 of 1 (latest)
hello! I assume you're using Payment Links?
There is no prebuilt deduplication functionality to avoid creating multiple Customer objects based on email address for Payment Links.
If you want to deduplicate customers, you're going to use Checkout Sessions and build your own logic
Somethings strange is when I POST to /payment_links to create a link, the return contains that "customer_creation": "if_required"
I understood that this property is not managed on PaymentLinks api, isn't?
we do have this parameter in the Payment Links API : https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes this param exists but is forbidden for subscription
{
"error": {
"message": "customer_creation can only be used if the payment link does not contain any recurring prices.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Dixh7CtfoyUHG6?t=1680762195",
"type": "invalid_request_error"
}
}
Sorry, i'm a bit confused - there's no way to prevent a new customer from being created with the same email address with Payment Links. If you're making payment via the Dashboard - if a customer already exists, you can select that customer id
Stripe will not check if a customer with that email address already exists before creating a new Customer object
I'm only using API to create payment links.
Do you plan to prevent creating a new customer if a customer already exists with the same email?
it's something we're planning to work on but there's no timeline which i can share
I will have a look to Checkout Session. It is working in a native mobile app?
do you mean if it can be opened in a web browser?
My bad, forget it, I already using PaymentLinks in web browser.