#martin-gaibisso_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
When did it work?
Did you make any change between when it worked and now?
i might have updated the api version installed but i'm not sure.
looks like it's working with v18.2.0-beta.1
Yeah you need a beta version of the sdk to use a beta feature
i might have confused the version. sorry and thanks for your time
No problem