剥离 "Transfer" & "Payout" 问题 "No such destination" PHP
Strip "Transfer" & "Payout" Issue "No such destination" PHP
当我尝试向另一个条纹帐户汇款时,它显示错误
Fatal error: Uncaught (Status 400) (Request req_THWS8JfPOYcSrv) No such destination: "accountid" thrown in stripe-php\lib\Exception\ApiErrorException.php on line 38
我使用的是 Transfer
\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"]);
我做错了什么。
您不能使用任何其他帐户通过 strip 汇款,您只能使用您在仪表板中创建的帐户(例如“连接帐户”),然后才能向这些帐户转帐。
当我尝试向另一个条纹帐户汇款时,它显示错误
Fatal error: Uncaught (Status 400) (Request req_THWS8JfPOYcSrv) No such destination: "accountid" thrown in stripe-php\lib\Exception\ApiErrorException.php on line 38
我使用的是 Transfer
\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"]);
我做错了什么。
您不能使用任何其他帐户通过 strip 汇款,您只能使用您在仪表板中创建的帐户(例如“连接帐户”),然后才能向这些帐户转帐。