#jarek_code
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/1228035847270563952
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
What are you tring to do?
get all transactions for each payout
And are you using stripe-node? Where is this code running?
yes code is currently run localy
The syntax looks to be a bit off
Can you include the stripeAccount parameter in first object?
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)
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)
What is the correct code sytax?
Can you try stripping down you first object?
Like
return stripe.balanceTransactions.list(
{
type: "payment",
}, {
stripeAccount: "acct_XXXXX"
}
)
But with the actual ID, obviously
testing
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)
Error: No such payout: 'po_1P4QeyQVUZHMCxxusB1ZG8dG'
requestId: 'req_vRp3SSbxs17cxp'
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
when we sent stipe acc the sdk is returning error
You need to specify the Stripe Account. You cannot access this payout without it
Can you provide your actual parameters?
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',
}
);
is there a way to test authomatic payout without waiting 2days
If you're referring to the payment settlement time you can using the "bypass pending" test card
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
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
ok great, i was going to mention that it looked like you were using a pretty old version of stripe-node from 2019
what about the best way to test automatic payouts?
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