#silvanet_api
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/1331410095413788703
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Looking at the failed request it looks like you were trying to create a Checkout Session using our older line_items approach, which will no longer work on the API version you're using. See here for details: https://docs.stripe.com/upgrades#2022-08-01
You'll need to modify your code to use the newer approach (recommended), or you'll need to make the API request using an older API version.
I saw that message and suggested link, but it said I could continue using the old api just losing features, but the link led toa page not found.
Sorry, which link led to a page not found error?
hold on a second please
Sorry, I had shut down my code. I have to get it back up again. Can you wait?
How long?
This was the link the error sent me to: https://docs.stripe.com/payments/checkout/migrating-prices
click on the use your current integration link...it goes to page not found
Ah, gotcha.
I'll flag that for a fix internally. In the meantime here's an archived copy of that page: https://web.archive.org/web/20221204110143/https://support.stripe.com/questions/prices-api-and-existing-checkout-integrations
So, OK, how do I change to the new API? I see that I'm using an old one from the dashboard logs.
Really, though, it boils down to what I said above. You can either switch to the new approach, which is recommended, or you can use an older API version.
The original migration guide explains how to switch: https://docs.stripe.com/payments/checkout/migrating-prices
Wayback Machine! Thanks.
I see that I'm using an old one from the dashboard logs.
Can you elaborate? What exactly are you seeing?
You can paste it in, or use the + button to the left of the text entry field.
got it thanks
That indicates you're using the latest API version for that request.
You may want to read through this page to get a better understanding of how our API versions work: https://docs.stripe.com/upgrades
So, essentially, if I swap the names in my code, is that enough?
Also note that you can (and should) set an explicit API version in your code.
See here for how to do that: https://docs.stripe.com/api/versioning
I'm not sure what you mean by "swap the names", but you can give it a try in test mode and see what happens.
Thank you for all your help. I'll post back how it worked for me.
is there a quick way to save this thread of our conversation?
These names
my code has all the names on the left column
Discord threads never go away, but we do close idle threads. You can always get back to this thread, closed or not, using this link: https://discord.com/channels/841573134531821608/1331410095413788703