#cludio-figueiral_best-practices

1 messages ¡ Page 1 of 1 (latest)

void vesselBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253255144011730968

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

shy sparrow
#

If the price is the same, you would not need to create new ones each time.

fickle tusk
#

ok, but then what do you recommend? do a get on all the products to confirm if there is already one with the same description and then do a get on all the prices of that product to confirm if that price already exists and if there is, use that one If it doesn't exist, create a new one?

void vesselBOT
shy sparrow
#

Yes, but the way Payment Links works is that you create this once with the Price and you share it with customers so the price would already be defined.

fickle tusk
#

I haven't yet seen how your webhook works, but I was thinking about creating a payment link for each appointment and only allowing it to be paid once so I know that the payment relates to that appointment. Because if I send the same link to several customers and they make several payments, how can I then know which markup it refers to?

oblique linden
fickle tusk
#

ok, and how can I pass this parameter when I create the payment link via the API?

oblique linden
#

If you are using Stripe APIs, then you should use Checkout Sessions and not Payment Link

#

Is there a particular reason for using PaymentLinks ?

oblique linden
fickle tusk
#

It may make sense, but the reason for using the payment link is because the person making the appointment will be the professional and then I need to send the link to the client so they can make the payment for that appointment. My use case is not for when the customer makes the appointment online. With checkout, would you also be able to send the link to the customer to pay?

oblique linden
#

But if you want to have a unique identifier per Checkout Session from your Server/Code then you should create a Checkout Session for each customer

#

With checkout, would you also be able to send the link to the customer to pay?
And to answer this part, yes you can share the Checkout url with the customer to pay

fickle tusk
#

ok, it seems to me that it really is the checkout that I wanted and not the payment link. I will try to integrate the checkout and if you have any additional questions, I will get back to you. Thanks