【问题标题】:Strip "Transfer" & "Payout" Issue "No such destination" PHP剥离“转移”和“支付”问题“没有这样的目的地”PHP
【发布时间】:2020-10-10 00:05:38
【问题描述】:

当我尝试向另一个条带帐户汇款时,它显示错误

Fatal error: Uncaught (Status 400) (Request req_THWS8JfPOYcSrv) No such destination: "accountid" thrown in stripe-php\lib\Exception\ApiErrorException.php on line 38

我使用的转移

\Stripe\Stripe::setApiKey('SITE_KEY');
$transfer= \Stripe\Transfer::create([
    'amount' => 1000,
    'currency' => 'usd',
    'transfer_data' => [
    'destination' => 'other_stripe_account',
    ],
]);

对于我使用的付款

\Stripe\Stripe::setApiKey('SITE_KEY');
$payout = \Stripe\Payout::create([
'amount' => 50,
'currency' => 'usd',
'destination' => "other_stripe_account",
],
["stripe_account" => "MY_STRIPE_ACCOUNT"]);

我做错了什么。

【问题讨论】:

标签: php stripe-payments strip


【解决方案1】:

您不能使用任何其他帐户通过条形汇款,您只能使用您在仪表板中创建的那些帐户,例如“连接帐户”,而不是向这些帐户转帐。

【讨论】:

    猜你喜欢
    • 2014-12-16
    • 2014-07-12
    • 2019-01-31
    • 2012-05-15
    • 2018-08-03
    • 2016-02-11
    • 1970-01-01
    • 2020-02-08
    相关资源
    最近更新 更多