#rocket_nodejs-apiversion
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.
- rocket_error, 9 hours ago, 294 messages
- rocket_error, 1 day ago, 65 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/1248692385756741642
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi ๐
When you create a webhook endpoint it has a specific API version set. In order to receive webhooks using the new API version you will need to register a new endpoint with Stripe.
as in
I need to re-add the webhook endpoint?
the webhook version says it's been updated
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this request, which is not related to the webhook, still has the old api version
and this was made after I had upgraded the api version
my code doesn't set a specified version when instantiating stripe, which should default to the newest version of stripe
so i'm wondering if I need to just redeploy my app for it to use the latest version?
Can you pause please
Stripe specifies a webhook version when you create it
That webhook endpoint we_XXXX has a specific API version
which one?
Do you have a specific event ID that you can share?
evt_1PP6eEHvAVLYAKEcS9ZUonnJ
this is an example
if I click on the source, the API version says 2022-11-15
also when I say requests i'm not exclusively referring to webhooks for clarification
I haven't received any webhook requests since updating the api version so I can't confirm whether they've updated yet
I'm referring to the other requests made through the Stripe API that happened after I upgraded the API
Okay looking at https://dashboard.stripe.com/logs/req_PfRUXK3nEkWD7o and the API version was explicitly set in this API request
but my code doesn't actually set the API version
does that mean I just need to redeploy my code?
const stripe = Stripe(process.env.STRIPE_SECRET_KEY);
this is how I instantiate stripe
Our Node.js SDK pins to specific API versions. It looks like your new default API version is 2024-04-10. We updated our Node SDK to pin to that API version in v15.0.0 https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1500---2024-04-10
ah okay
so my node SDK is 12.16
so I should upgrade to v15?
ah yes okay that worked
I upgraded the node sdk to v15 and it works
thank you so much
Great ๐ Happy to help