[英]No such external account and my Stripe Payout not working using php?
I am transferring fund from stripe account to connect account using payout api my code is:我正在使用付款 api 从条纹帐户转移资金以连接帐户,我的代码是:
$payout = \Stripe\Payout::create([
'amount' => 500,
'currency' => 'aud',
'description' => 'first payout payment transfer on stripe',
'destination' => 'bank_id',
'method' => 'instant',
'source_type' => 'bank_account',
'statement_descriptor' => 'first payout payment transfer on stripe ',
]);
after hit this api show error:在点击这个 api 显示错误后:
Stripe\\Exception\\InvalidRequestException: No such external account: ba_1G497bAoBoRegJgCC1jj2UE2 in file /var/www/html/ultimateFitness/app/Stripe/lib/Exception/ApiErrorException.php on line 38
Stripe\\Exception\\InvalidRequestException: No such external account: ba_1G497bAoBoRegJgCC1jj2UE2 in file /var/www/html/ultimateFitness/app/Stripe/lib/Exception/ApiErrorException.php on line 38
Also i am follow stripe documentation: https://stripe.com/docs/api/payouts/creat e我也遵循条纹文档: https : //stripe.com/docs/api/payouts/creat e
You need to make the call on behalf of the connected account — right now it gives an error because it's looking for the bank account on your Stripe account, not the connected one.您需要代表连接的帐户拨打电话 - 现在它给出了一个错误,因为它正在寻找您的Stripe 帐户上的银行帐户,而不是连接的帐户。
https://stripe.com/docs/connect/authentication https://stripe.com/docs/connect/authentication
$payout = \Stripe\Payout::create([
'amount' => 500,
'currency' => 'aud',
'description' => 'first payout payment transfer on stripe',
'destination' => $bank_id,
'method' => 'instant',
'source_type' => 'bank_account',
'statement_descriptor' => 'first payout payment transfer on stripe ',
],
["stripe_account" => "{{CONNECTED_STRIPE_ACCOUNT_ID}}"]); // value like "acct_xxx"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.