当我尝试向另一个 Stripe 帐户汇款时,它显示错误
fatal error :未捕获(状态 400)(请求 req_THWS8JfPOYcSrv)没有这样的目的地:第 38 行在 stripe-php\lib\Exception\ApiErrorException.php 中抛出“accountid”
对于传输我使用
\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 汇款,您只能使用您在仪表板中创建的帐户(例如“连接帐户”),然后才能将钱转入这些帐户。
关于php - 剥离 "Transfer"和 "Payout"问题 "No such destination"PHP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60566078/