繁体   English   中英

没有这样的外部帐户,我的 Stripe Payout 无法使用 php 工作?

[英]No such external account and my Stripe Payout not working using php?

我正在使用付款 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 ',
        ]);

在点击这个 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

我也遵循条纹文档: https : //stripe.com/docs/api/payouts/creat e

您需要代表连接的帐户拨打电话 - 现在它给出了一个错误,因为它正在寻找您的Stripe 帐户上的银行帐户,而不是连接的帐户。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM