php - 剥离 "Transfer"和 "Payout"问题 "No such destination"PHP

标签 php stripe-payments strip

当我尝试向另一个 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/

相关文章:

php - 从mysql中的不同表中提取数据

php - 表单 1 提交告诉表单 2 选择了哪些输入

ios - strip 创建用户 firebase 云函数

node.js - 更新现有订阅时,billing_cycle_anchor 必须未设置、 'now' 或 'unchanged' stripe billing_cycle_anchor

ios - iPhone 应用程序的 strip 符号

php - Zend db PDO 不返回结果

javascript - 在数据表中单击选择行并将所选数据导出为 Excel

node.js - Stripe node.js - StripeAuthenticationError

javascript - 去掉 0 和任何非数字字符 Javascript

html - CKEDITOR 剥离按钮内的 anchor 标签