#newtreyes_api
1 messages ยท Page 1 of 1 (latest)
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.
- newtreyes_code, 3 days ago, 15 messages
- newtreyes_api, 4 days ago, 8 messages
- newtreyes_code, 5 days ago, 21 messages
- newtreyes_code, 6 days ago, 46 messages
๐ 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/1252267377823842314
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hey there
You can use price_data when creating a Checkout Session to create a Price inline
Sorry if this is a silly question
You can attach those Prices to an already-created Product or you can use product_data to create a new Product each time as well
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data is the parameter I'm talking about
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is it possible to do this whithout using Checkout?
Like for example, directly creating a Subscription?
Ah no in that case you have to create the Price ahead of the Subscription creation request
Can't do that inline
Ok
Is it a problem if there is more than one price using the same unit_amount for a product?
Yeah I don't think you can do that but I don't actually recall 100%
Would recommend testing that
Sure thing
Huh okay yeah I must be misremembering