#blaze_api

1 messages ¡ Page 1 of 1 (latest)

fast anchorBOT
#

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

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

earnest snow
abstract abyss
#

can i get it from the dashboard gui?

earnest snow
#

probably, yes

abstract abyss
#

req_RvZNs7u1wJe2Fy

earnest snow
abstract abyss
#

No such external account: 'ba_1QDgE2Pd5lmB1dIMuXKwnpkx'

#

i am passing ba_

earnest snow
#

you're passing in acct in ^ request

abstract abyss
#

oh okay let me cross check just allow me a moment please

#

I am building this in laravel

-> What i want to acheive

  1. I am building an app where users can book a chef. To book chef's user is paying through STRIPE CHECKOUT.
    now i have to pay the chef their cut.

-> What i have done so far

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

creating a connect account for the logged in chef

  1. once created then it movies to on_boarding

$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',
]);

These two steps are working fine no problem with them

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

    no i am just trying to payout (just to test if working or not)
    

using $this->stripe->accounts->allExternalAccounts($user->stripe_connect_id);
this to retreive tha ba_ object

earnest snow
abstract abyss
#

it worked

#

thankyou so much i was stuck on this from yesterday