#Neetu

1 messages ยท Page 1 of 1 (latest)

wise lichenBOT
rapid tulip
#

Hi ๐Ÿ‘‹ can you elaborate on the trouble you're running into?

warm nebula
#

hi

#

I am using laravel

#

and stripe connect

#

transfer is working fine

rapid tulip
#

Laravel Cashier, or just the Laravel framework?

warm nebula
#

Laravel cashier

#

but for stripe connect using stripe PHP sdk

#

now using above api

#

try to create Payout

#

No such external account: 'ba_1MYoDRPEgrmSC6QLGeER0fyC'

rapid tulip
#

Can you share the ID of the request (req_123) that returned the error you referenced?

#

To clarify, I'm looking for the ID of the request that returned that error, you can use the approaches discussed here to find that ID if you not already have it on hand:
https://support.stripe.com/questions/finding-the-id-for-an-api-request

#

My suspicion is that you're referencing an External Account that belongs to an account other than the one that you're making the request for, but having the ID of the request would allow me to take a closer look at what it was trying to do.

warm nebula
#

req_V36zdfPTkeXNgx

rapid tulip
#

Thank you, pulling that up.

warm nebula
#

I am on sandbox

rapid tulip
#

The External Account that you're referencing in that request belongs to an account other than the one making the request, so the request fails because that object isn't accessible from another account.

It looks like the request is being made from your Platform account, but is trying to reference objects belonging to your Connected Account. When making a request for one of your Connected Accounts, you need to include that account's ID in the stripe_account parameter:
https://stripe.com/docs/api/connected_accounts

warm nebula
#

I want to create payouts for my different sellers

#

just for your knowledge

rapid tulip
#

Okay

warm nebula
#

$stripe->payouts->create([
"destination" =>"ba_1MbOlxPFopMitDcaZYbLdC0w",
"description" =>"Payout till date 14th of February 2023",
"statement_descriptor"=>"InstaWP Payout",
"amount"=>"3764",
"currency"=> "usd"
])

#

I am using like this

#

please guide me

rapid tulip
#

You need to also include the stripe_account parameter as shown in the code snippet of my previous link. So you would add another array to your request to include that parameter, like this:

$stripe->payouts->create([
"destination" =>"ba_1MbOlxPFopMitDcaZYbLdC0w",
"description" =>"Payout till date 14th of February 2023",
"statement_descriptor"=>"InstaWP Payout",
"amount"=>"3764",
"currency"=> "usd"
],
['stripe_account' => [CONNECTED_ACCOUNT_ID])

warm nebula
#

You have insufficient funds in your Stripe account for this transfer.

#

how I can add funds'

#

?

rapid tulip
#

Since it sounds like your flow is using Transfers, those would be the way to add funds to your Connected Accounts.

warm nebula
#

ok

rapid tulip
#

If you're processing test payments to fund your Platform account's balance for those Transfers, then you may need to use the test cards listed here:
https://stripe.com/docs/testing#available-balance

These test cards skip the part of the payment process where funds go into your pending balance and instead the funds from them become available immediately.

warm nebula
#

this balance is related to my seller account or my account

rapid tulip
#

Both account's have balances, those test cards specifically refer to the account where the payments are being processed. If you're using Transfers to move funds to your Connected Accounts, then I believe you're going to be processing payments on your Platform.

warm nebula
#

yes