#jaime-la-gym_best-practices

1 messages · Page 1 of 1 (latest)

karmic thunderBOT
#

👋 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/1347222520046288999

📝 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.

neat mulch
karmic thunderBOT
midnight fable
#

AD hoc ? What does that mean ?

next anchor
#

👋 stepping in here

#

Ad hoc just refers to the dynamic nature that you are talking about.

#

Meaning a different price for each customer

#

Overall you should use Checkout as stated above, but you can also just create a new Price each time before creating a new Payment Link and then send that Link... there are no limits on amount of Prices/Products/Payment Links

midnight fable
#

Oh okay, im Reading the checkout doc but the price data seems juste like price but without making the api call right ? Or i misunderstood

next anchor
#

Correct

#

It creates the Price inline when you create the Checkout Session

#

So just 1 API call instead of 2

midnight fable
#

Price data can bé created without a product ? It says resuirrd conditionnaly what's the conditions ?

#

Required*

next anchor
#

Either product or product_data is required

midnight fable
#

So product data it will bé

#

Be

#

Id there something important to know about checkout session ?

#

Is*

next anchor
#

Not really

#

Mostly you should just test this out

#

And make sure it fits your use-case

midnight fable
#

If i pass metadata to the checkout session does thé metadata transfer to the payment ?

next anchor
#

Not the top-level metadata parameter, but payment_intent_data.metadata does

midnight fable
#

Oh yes i found the field Ty for all your anwsers have a great day