#jarek_code

1 messages ยท Page 1 of 1 (latest)

radiant spireBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

unkempt houndBOT
sick tangle
#

Hi ๐Ÿ‘‹

What are you tring to do?

whole aspen
#

get all transactions for each payout

sick tangle
#

And are you using stripe-node? Where is this code running?

whole aspen
#

yes code is currently run localy

sick tangle
#

The syntax looks to be a bit off

#

Can you include the stripeAccount parameter in first object?

whole aspen
#

let me try

#

still same error

#

yep, we're using node stripe, we we're implementing the same syntax that's on their website
when we included stripeAccount in the first object, we got unknow param stripeAccount (pr something similar)

sick tangle
#

Yeah, I just double checked that too and saw Node does use a separate object for headers (which is what the StripeAcocunt gets encoded as)

whole aspen
#

What is the correct code sytax?

sick tangle
#

Can you try stripping down you first object?

Like

return stripe.balanceTransactions.list(
{
  type: "payment",
}, {
  stripeAccount: "acct_XXXXX"
}
)
#

But with the actual ID, obviously

whole aspen
#

testing

whole aspen
#

I have ran that and it return a error still, running it now
same error:
Error: Stripe: Unknown arguments ([object Object]). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to GET /balance/history)

GitHub

Node.js library for the Stripe API. . Contribute to stripe/stripe-node development by creating an account on GitHub.

sick tangle
#

Yeah

#

Does this generate a request ID?

whole aspen
#

Error: No such payout: 'po_1P4QeyQVUZHMCxxusB1ZG8dG'

sick tangle
#

Okay now we are getting somewhere

#

Do you have the request ID for this request?

whole aspen
#

requestId: 'req_vRp3SSbxs17cxp'

sick tangle
#

Okay there is no stripeAccount specified there. So it's looking on account acct_1BGb0GHApiEoZcKa but the Payout you are looking for is on account acct_1OKwCYQVUZHMCxxu

whole aspen
#

when we sent stipe acc the sdk is returning error

sick tangle
#

You need to specify the Stripe Account. You cannot access this payout without it

#

Can you provide your actual parameters?

whole aspen
#

this is error : Error: Stripe: Unknown arguments ([object Object]). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to GET /balance/history)
this is the code : return stripe.balanceTransactions.list(
{
payout: 'po_1P4QeyQVUZHMCxxusB1ZG8dG',
},
{
stripeAccount: 'acct_1OKwCYQVUZHMCxxu',
}
);

GitHub

Node.js library for the Stripe API. . Contribute to stripe/stripe-node development by creating an account on GitHub.

radiant spireBOT
whole aspen
#

is there a way to test authomatic payout without waiting 2days

livid meadow
#

4000000000000077

#

This will lead to an immediately available balance for payouts

#

As for your issue with the code and options errors, it doesn't really make sense

whole aspen
#

I need to test webhook events for automatic payouts without waiting 2day

#

it updated our stripe and it worked

#

sdk version was not compatibile with the code

livid meadow
#

ok great, i was going to mention that it looked like you were using a pretty old version of stripe-node from 2019

whole aspen
#

what about the best way to test automatic payouts?

livid meadow
#

You should use the bypass pending test card to accrue some available balance in the connected account and after the initial waiting period you should see payouts created each day