#blaze_code

1 messages ยท Page 1 of 1 (latest)

fallow hawkBOT
#

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

finite folio
tiny peak
#

still same

#

can you assist me please?

finite folio
#

What is your account ID?

#

This isn't integration related really

tiny peak
#

acct_1Q7yDLBtY4iG3hhQ

finite folio
#

Hmm, I see an available test mode balance on that account

tiny peak
#

what could be the issue?

#

as i want to test payouts

#

and it is giving me insufficient balance error

finite folio
tiny peak
#

req_k2oFxAstgxpWnr

#

latest req object

finite folio
#

I assume you're calling POST /v1/payouts somewhere

tiny peak
#

oh wait

finite folio
#

Can't see any of those requetss on acct_1Q7yDLBtY4iG3hhQ? So maybve you're using the wrong API key?

tiny peak
#

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).

finite folio
#

Yes, I know that is the error message. I need to see the ID of the request

tiny peak
finite folio
#

Because AFAICT you aren't making the request with the API keys of acct_1Q7yDLBtY4iG3hhQ

tiny peak
#

then how is it coming in my logs if i am using wrong api keys??

finite folio
#

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

tiny peak
#

i dont know why in log

#

payout api req is not coming

#

but other reqs are coming

finite folio
#

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

tiny peak
#

$stripePayout = \Stripe\Payout::create([
'amount' => 10000,
'currency' => 'usd',
'destination' => $validAccount->id,
] ,['stripe_account' => $user->stripe_connect_id]);

#

should i share connect id and destination ?

finite folio
#

OK, so it's a Connect scenrio. Does the connected account have a balance?

#

Would be helpful if you explained that initially ๐Ÿ™‚

fallow hawkBOT
finite folio
tiny peak
#

what i am tryinig to acheive ->

  1. for breif i am making a web app in Laravel which connects chefs and users
  2. User pays for a chef via strip checkout
  3. I need to use stripe connect to pay out my chef

-> what i have done for it

  1. $account = Account::create([
    'type' => 'express',
    'country' => 'US',
    'email' => $user->email,
    'capabilities' => [
    'card_payments' => ['requested' => true],
    'transfers' => ['requested' => true],
    ],
    ]);

account creation

  1.  $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

  1. 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?

finite folio
#

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

tiny peak
#

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

finite folio
#

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

tiny peak
#

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

primal moth
#

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?

tiny peak
#

yes i am missing this step

#

can you share the API reference

#

I am using stripe API docs

primal moth
#

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

tiny peak
#

okay thanks