#maverick_balance-connect

1 messages ¡ Page 1 of 1 (latest)

fathom brambleBOT
#

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

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

indigo valeBOT
#

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.

warm osprey
#

maverick_balance-connect

#

@cold moss can you share your exact code?

cold moss
warm osprey
#

please share real code as text, not pictures

cold moss
#

// retrieve balance from connected account
exports.retrieveBalance = onCall(async (data, context) => {
console.log(data);
try {
const balance = await stripe.balance.retrieve({
stripeAccount: data.data.connectedAccId,
});

return {
  balance: balance,
};

} catch (e) {
return {
error: {
message: e.message,
},
};
}
});

warm osprey
#

also share the exact value you pass for the connected account id and exact stripe-node SDK version

cold moss
#

connectedAccId: "acct_1Orjl7IDbTnCIAma", node 20

warm osprey
#

exact version of stripe-node SDK please. Not just one number, and not the Node.js version

cold moss
#

how can I get my version of stripe-node SDK?

warm osprey
#

usually you know which version you have installed. It should be somewhere in your .node-modules but if you don't know let's skip this for now.
Can you add a clear log after that call before you return? Just add console.log(balance); and let me know what it logs

cold moss
#

nevermind, I got the error