首页 > 解决方案 > 剥离“转移”和“支付”问题“没有这样的目的地”PHP

问题描述

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

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"]);

我做错了什么。

标签: phpstripe-paymentsstrip

解决方案


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


推荐阅读