#silvanet_api

1 messages ¡ Page 1 of 1 (latest)

pastel violetBOT
#

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

vapid flame
#

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.

cedar acorn
#

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.

vapid flame
#

Sorry, which link led to a page not found error?

cedar acorn
#

hold on a second please

#

Sorry, I had shut down my code. I have to get it back up again. Can you wait?

vapid flame
#

How long?

cedar acorn
#

click on the use your current integration link...it goes to page not found

vapid flame
#

Ah, gotcha.

cedar acorn
#

So, OK, how do I change to the new API? I see that I'm using an old one from the dashboard logs.

vapid flame
#

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.

cedar acorn
#

Wayback Machine! Thanks.

vapid flame
#

I see that I'm using an old one from the dashboard logs.

Can you elaborate? What exactly are you seeing?

cedar acorn
#

how do I attach a screenshot here?

#

I think I did it.

vapid flame
#

You can paste it in, or use the + button to the left of the text entry field.

cedar acorn
#

got it thanks

vapid flame
#

That indicates you're using the latest API version for that request.

cedar acorn
#

So, essentially, if I swap the names in my code, is that enough?

vapid flame
#

Also note that you can (and should) set an explicit API version in your code.

#

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.

cedar acorn
#

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

vapid flame
cedar acorn
#

I'm using javascript and node.js

#

Thanks much AGAIN.