#artursir_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1290329665524994109
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
No, you cannot tie a re-usable payment link to a specific customer.
If this is for a one-time payment, perhaps you want to use Checkout Sessions instead?
right, but I need something that can be used without a need of logging in to the app, like payment link
anythink else could you suggest?
Otherwise, you can pass an existing customer at the point of use by specifying a customer session as described above
but still for payment links?
Using the "buy button" pattern, yes
Otherwise you can use URL query params to specify a prefilled_email but this is not directly tied to any customer:
https://docs.stripe.com/payment-links/customize#customize-checkout-with-url-parameters
so if any customer uses that email it won't be created a new customer but the existing one will be used and connected to this payment link?
No, the existing customer won't be used, it will create a new one with that email method
If you want to strictly use an existing customer, you likely want to use checkout sessions instead.
so is it possible to use a prefilled checkout session available by link?
i mean with customer and price included
would be great to have a link for these params to complete payment
Prefilled with the customer email, yes, you could create the session when the customer expresses intent to pay using the customer parameter and then redirect them to the URL
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.