#doowire
1 messages ยท Page 1 of 1 (latest)
Hello ๐
How exactly are you creating these prices?
Are you using them in a pricing table?
What I am doing is I have an edit product form. I pull the old price Id from my database and disable it, then I call this create-product to add a new price to the same product
Can you share an example product ID so that I am on the same page?
ah then can you share a request ID that creates a product instead?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
For some reason i can't find my most recent product
here's an old one
req_4thQvJwv6r5ejT
Actually dont use that
let me create a new product quickly
it's not giving me a /products log
Interesting.. Is it possible you're using an API key that belongs to a diff account?
OR are you looking at the correct test mode logs?
i dont think so because it is giving me the /prices logs
I can see the correct priceId in the logs
changing ev time
not sure what you mean by ev time ๐
every time. But ignore my past messages
The logging is not the problem anymore. Still struggling with the fact that all the new prices are inactive
It looks like once you create the price, it is being archived right after
https://dashboard.stripe.com/test/logs/req_wwoMbzovHRx93d
That's working as expected no?
Hmm, can you share the code you're using to handle that logic? Seems like a bug in your code that's archiving all the prices
yes or you just need to make sure you don't call the handler for the newly created price ID
I just commented out the part where the price is being disabled, and they are still locked in my dashboard (even when creating new ones)
Did you create the new price for the same product as before?
Yes
Okay, taking a look
Looks like your code still called the API to update the price to archive the price
https://dashboard.stripe.com/test/logs/iar_KzwWs2y0pQ86Ol
How is that even possible
let me look
I think I just fixed it
Can you confirm it works
yup I see the price associated with the product
https://dashboard.stripe.com/test/products/8N8457
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Perfect
I realized I called it in two spots by accident alot further down in the code. Thank you for all of the help