#r0ninn

1 messages · Page 1 of 1 (latest)

lone shuttleBOT
rigid echo
#

Hi. What's your question?

graceful zealot
#

Hey dude morning

rigid echo
#

Hi. What's your question?

graceful zealot
#

I'm using NextJs for the integration with Stripe but I'm getting this error which is weird because I'm using NextJs API and my Secret Key to execute the cancel function

#

Do you know what happen?

rigid echo
#

Wouldn't consider myself a Node expert but happy to help

graceful zealot
#

Let me try with that syntax but should work anyway

#

Nope, the problem persist

rigid echo
#

Gotcha. Also what version of our node library are you using?

graceful zealot
#

I'm not using Node for the API exactly

#

I'm using NextJs

#

and the version is 12.3.2

rigid echo
#

No which version of the stripe node library are you using

#

Our sdk to make api requests in .js

graceful zealot
#

What do you mean?

#

Do you mean Api version?

rigid echo
#

No. You had to have installed the stripe sdk to make calls, right?

graceful zealot
#

ahh yeah

rigid echo
#

Yeah

#

What version?

graceful zealot
#

i'm using 13.7.0

rigid echo
#

Hm that version should support that syntax I think. Where do you call require('stripe')?

graceful zealot
rigid echo
#

Hm ok

#

Not sure then. Let me ask a colleague

#

You sure you're on 13.7.0?

#

delete should work on that version

#

On earlier versions it was stripe.subscriptions.del

#

Recommend you try that

#

You can also run console.log(Stripe.PACKAGE_VERSION) to verify the version

graceful zealot
#

I'm sure

rigid echo
#

Run the above console log

#

In case you have a conflicting version somewhere

graceful zealot
#

oh

#

It returns this

#

wtf

#

Should I reinstall my packages?

rigid echo
#

Yeah that's a very old version

#

If you want the docs to reflect what syntax to use, you should use a later version

graceful zealot
#

Ok i did it

#

And now it is returning this

#

let me try again

#

Is working!!!

#

omg you are a genius

#

thanks

rigid echo
#

Lol np