#wasnt-me_best-practices
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/1228286498047135784
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hmm ok so would it be typical then that if a price is updated i create a new price and update the product with the new price id? Or just make a new product and archive the previous one?
I mean if i understand it correctly the price is a standalone object correct? And thanks for the help too btw
you don't have to archive the product, since it has all of the information you just create a new price on the same product
and you use the new price ID
a Product can have multiple Prices
Ok, that's interesting but makes sense now you say it - I will need to check that later in the process as I see checkout takes a price ID in line item but not a product, do i assume the checkout resolves the product from a price Id? That seems odd to me in the case a price is assigned to multiple products - or is that a 121?
meaning a price can only have 1 product but a product can have many prices?
the checkout resolves the product from a price Id?
correct
a price can only have 1 product but a product can have many prices?
correct again
Ok that makes sense for me then, thanks very much and good weekend! This is my first time using this, do i need to mark this topic resolved or?
no worries, I will close the thread if you don't have any other topics you want to discuss
That's cleared everything up for me for now - I will later be looking at what happens in the other direction e.g. if the client updates directly in Stripe and how i get that data back...but I need to work on that myself when i come to it before i ask direct questions here.. so yes can be closed.