#rocket_nodejs-apiversion

1 messages ยท Page 1 of 1 (latest)

slate swiftBOT
acoustic quailBOT
#

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.

slate swiftBOT
#

๐Ÿ‘‹ 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.

stiff spoke
#

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.

stable cape
#

as in

#

I need to re-add the webhook endpoint?

#

the webhook version says it's been updated

#

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?

stiff spoke
#

Can you pause please

#

Stripe specifies a webhook version when you create it

#

That webhook endpoint we_XXXX has a specific API version

stable cape
#

which one?

stiff spoke
#

Do you have a specific event ID that you can share?

stable cape
#

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

stiff spoke
stable cape
#

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

stiff spoke
stable cape
#

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

stiff spoke
#

Great ๐ŸŽ‰ Happy to help