簡體   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