#kevinbett_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/1268924532039618633
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kevinbett_api, 1 hour ago, 6 messages
- kevinbett_api, 4 hours ago, 8 messages
If you need to create a customer every time, you should set up the payment link to do so: https://docs.stripe.com/api/payment-link/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.
Pyament link does'nt have a parameter to create a customer
What i need to achieve is we alredy have a customer created on stripe and we will be sending apayment link to this customer at certain days of the month.
So for every payment they make using the payment link, I would like it to link to the customer already created on stripe
Ah yeah the Payment Link doesn't support re-using a customer id
If you want a Stripe-hosted page that supports this, you'd need to use Checkout Sessions or Invoicing
So what do you suggest for my case because i saw that checkout session has an expiry of 24 hours nad we are not considerring the Invoicing or subscription for now since i mentioned we will be creating our own invoicess
yeah you'd need to build some intermediary page on your site that the customer goes to to click a button or something to create and redirect them to the checkout session if expiry is a concern
Or just build your own payment page with elements
First we create the cutomer on stripe on Signup. We the click on button to send the payment link to the customer they pay using the link and the customer is creted on stripe. So when we send the link we expect not to send again after 24 hours because there might be several customers
Not sure I understand. What's the question?
As i said my case is that we are creating our own invoice file and we will be using stripe for payment but with the payment links it doesn't attach the customer to the payment on stripe
Hi there ๐ jumping in as my teammate needs to step away soon. As my teammate suggested, I wouldn't use Payment Links if you already have Customers created within your Stripe account, I'd recommend creating a Checkout Session instead.
If you don't want to use Stripe Billing, then you'd set mode to payment when creating the Checkout Session.
and for me to enable the the checkout link to last more, Because i noted that it expires AT 24hours
It's not possible to extend that longer than 24 hours, but you can create a new session if the previous one expires.
since for our case we will be sending to a number of customers and they have a grace period of around a week to pay. What can you advice on that