#Liege-payment-Link
1 messages ยท Page 1 of 1 (latest)
Hi there, the payment link is not associated to a particular customer https://stripe.com/docs/api/payment_links/payment_links/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmmm
If you want to create a link specific to a customer, can I suggest Checkout Session ? https://stripe.com/docs/api/checkout/sessions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Lemme take a look
Do I have to pass in a payment method or can the customer add one in the checkout session?
You can pass the list of payment method types when creating the Checkout Session, and your customers can use one of them to complete the payment https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Your customer cannot add new payment method during checkout.
How can I have customers add their payment methods without me doing it in the dashboard?
I'm afraid we don't offer this options to customers.
Maybe you want to use Payment Elements with Payment Intent API? you can set automatic_payment_methods to enabled so that Stripe will offer the the payment methods based on your Dashboard settings https://stripe.com/docs/api/payment_intents/create#create_payment_intent-automatic_payment_methods
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Wait so the only way I can add a payment method for a user is manually thru the dashbaord?
You can do it via API, when you create a Checkout Session, you can specify the list of payment method types https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Im trying to have the email that is entered in a payment link associated with the customerid that is associated with the email
if that makes sense ๐
Actually Stripe would automatically create a customer object for you upon the payment completion
Right
I noticed
But I want it to be associated with an existing customer
the blurred name is different the one thats not blurred
but same email
Yup, so I'd suggest using Checkout Session if you want to creating a link that specific to a customer.
but they have to have a payment method already added to pay :((
Same as Payment Link, you also need to specify the list of payment method types https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ohhhhh
In fact Payment Link is creating a Checkout Session under the hood.