#blaze_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/1299330318808911943
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- blaze_api, 3 hours ago, 17 messages
Yes with most test cards the funds will go into a 'pending' balance until they settle (like any card payment). You can bypass that with the cards here: https://docs.stripe.com/testing#available-balance
acct_1Q7yDLBtY4iG3hhQ
Hmm, I see an available test mode balance on that account
what could be the issue?
as i want to test payouts
and it is giving me insufficient balance error
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
No, a request where you see this error
I assume you're calling POST /v1/payouts somewhere
oh wait
Can't see any of those requetss on acct_1Q7yDLBtY4iG3hhQ? So maybve you're using the wrong API key?
You have insufficient funds in your Stripe account for this transfer. Your card balance is too low. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).
Yes, I know that is the error message. I need to see the ID of the request
Because AFAICT you aren't making the request with the API keys of acct_1Q7yDLBtY4iG3hhQ
then how is it coming in my logs if i am using wrong api keys??
That screenshot shows me nothing โ there's no error there just other successful requests
I'm looking at the internal logs for acct_1Q7yDLBtY4iG3hhQ and there's no requests to POST /v1/payouts with that error
In the response headers of the API requests that errors there'll be a req_xxx โ share that please
Because I suspect you're using a different API key for that request somehow. Share the code you're using to make the Payouts creation call please
$stripePayout = \Stripe\Payout::create([
'amount' => 10000,
'currency' => 'usd',
'destination' => $validAccount->id,
] ,['stripe_account' => $user->stripe_connect_id]);
should i share connect id and destination ?
OK, so it's a Connect scenrio. Does the connected account have a balance?
Would be helpful if you explained that initially ๐
The issue is that the CA probably doesn't have a balance as your Checkout Sessions are created and confirmed on the platform. So you're adding funds to the platform balance. You're not passing the Stripe-Account header here for example: https://dashboard.stripe.com/test/logs/req_YjZCY6hApfZdQv
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If your intention is to create a Checkout Session on the connected account then you need to add that header: https://docs.stripe.com/connect/direct-charges?platform=web&ui=stripe-hosted
what i am tryinig to acheive ->
- for breif i am making a web app in Laravel which connects chefs and users
- User pays for a chef via strip checkout
- I need to use stripe connect to pay out my chef
-> what i have done for it
- $account = Account::create([
'type' => 'express',
'country' => 'US',
'email' => $user->email,
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
]);
account creation
-
$accountLink = $this->stripe->accountLinks->create([ 'account' => $account->id ?? $user->stripe_connect_id, 'refresh_url' => route('chef.account.settings'), 'return_url' => route('chef.stripe-connect-account.create-success'), 'type' => 'account_onboarding', ]);
Chef on boarding
- Now i need to payout chef their cut
for which i am using payouts
$accountLink = $this->stripe->accountLinks->create([
'account' => $account->id ?? $user->stripe_connect_id,
'refresh_url' => route('chef.account.settings'),
'return_url' => route('chef.stripe-connect-account.create-success'),
'type' => 'account_onboarding',
]);
code to create payout
Note:: The payout money gets debited from the account i am using
am i correct?
Yes, that all makes sense. Bu, I suspect, the connected account has no balance becuase the Checkout Sessions you're creating to add balance are not created on that account as you're missing the Stripe-Account headers in that request
Please read the link I shared above
won't the payout money go from my stripe connect ? stripe connect account is just for the users to whom i want to payout?
am i right>
ok let me check the link
No, the payout created uses the balance of the account you're creating it on (in this case the conncted account)
Create some payments (to add a balance) on the conncted account and this will all work
won't the payout money go from my stripe connect ? stripe connect account is just for the users to whom i want to payout?
how can i acheive this?
can you share some reference
I think you might be missing the step where you transfer funds from your Platform balance to your Connected account balance, before you can pay it out.
Are you using and Stripe guide to implement your flow?
yes i am missing this step
can you share the API reference
I am using stripe API docs
The type of integration you need is Destination Charges: https://docs.stripe.com/connect/destination-charges
Please follow the docs separately. Mainly, you will need to add a parameter to your Checkout Session to transfer the funds to your Connected account when the payment is confirmed
okay thanks