【问题标题】:Cannot create payouts: this account has requirements that need to be collected. in Laravel connecting to Stripe无法创建付款:此帐户有需要收集的要求。在 Laravel 中连接到 Stripe
【发布时间】:2022-08-18 00:21:42
【问题描述】:

当想要连接到 Stripe api 以将我的钱包余额支付到一张客户账户卡时,我遇到了这个问题。

实际上我的laravel代码是:

   **$card_obj = $stripe->tokens->create([
        \'card\' => [
            \'number\' => \'4000051240000005\',
            \'exp_month\' => 8,
            \'exp_year\' => 2023,
            \'cvc\' => \'314\',
            \'currency\' => \'cad\',
        ],
    ]);
    $account = $stripe->accounts->create([
        \'type\' => \'express\',
        \'country\' => \'CA\',
        \'capabilities\' => [
            \'card_payments\' => [\'requested\' => true],
            \'transfers\' => [\'requested\' => true],
        ],
        \'external_account\' => $card_obj->id,
    ]);
    $payout = $stripe->payouts->create([
        \'amount\' => 1,
        \'currency\' => \'cad\',
    ], [
        \'stripe_account\' => $account->id,
    ]);**

以及响应返回的错误:

enter image description here

    标签: laravel api stripe-payments


    【解决方案1】:

    您无法创建 Stripe connect 帐户并立即开始为其创建付款。如果您要通过 API 检索该帐户,您可能会看到它有许多 requirements(请参阅 api ref)仍未完成,而 payouts_enabled(请参阅 api ref)是错误的。

    Connect 帐户所有者应在入职过程中提供此缺失信息(请参阅https://stripe.com/docs/connect/express-accounts 了解如何实施入职流程),一旦帐户上的payouts_enabled 变为真,您应该能够产生支出。

    【讨论】:

      猜你喜欢
      • 2020-03-07
      • 2016-10-24
      • 2021-08-17
      • 2018-07-15
      • 2016-03-29
      • 2015-10-01
      • 2015-03-18
      • 2021-11-24
      • 2020-01-03
      相关资源
      最近更新 更多