#martin-gaibisso_api

1 messages ¡ Page 1 of 1 (latest)

polar notchBOT
#

👋 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/1377308504217489481

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

teal dust
#

this is what i have installed: "node_modules/stripe": {
"version": "18.0.0",
"resolved": "https://registry.npmjs.org/stripe/-/stripe-18.0.0.tgz",
"integrity": "sha512-3Fs33IzKUby//9kCkCa1uRpinAoTvj6rJgQ2jrBEysoxEvfsclvXdna1amyEYbA2EKkjynuB4+L/kleCCaWTpA==",
"dependencies": {
"@types/node": ">=8.1.0",
"qs": "^6.11.0"
},
"engines": {
"node": ">=12.*"
}
},

#

const stripe = require('stripe')(config.stripe.secretKeyTest, {
apiVersion: '2025-03-31.preview'
})
console.log(await stripe.balanceSettings.retrieve({
stripeAccount: 'acct_1Mw00jQx7Cvaxhnj',
}))

#

weird thing is that it was working before but not now

#

getting TypeError: Cannot read properties of undefined (reading 'retrieve')

#

looks like i'm not hitting the correct API version

exotic ingot
#

Did you make any change between when it worked and now?

teal dust
#

i might have updated the api version installed but i'm not sure.

#

looks like it's working with v18.2.0-beta.1

exotic ingot
#

Yeah you need a beta version of the sdk to use a beta feature

teal dust
#

i might have confused the version. sorry and thanks for your time

exotic ingot
#

No problem