php - 剥离“转移”和“支付”问题“没有这样的目的地”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"]);
我做错了什么。
解决方案
您不能使用任何其他帐户通过条形汇款,您只能使用您在仪表板中创建的那些帐户,例如“连接帐户”,而不是您可以将资金转入这些帐户。
推荐阅读
- python - AttributeError:'int'对象在尝试在python中对列表进行排序时没有属性'name'
- javascript - res.json() 以 res.data 的形式发送数据,但在其中访问 _id 是未定义的
- spring-security - spring security数据库登录报错,报错对象不为空
- javascript - 使用 React Hooks + Firestore 将字段值作为 null 添加到集合中
- c++ - LLVM comparing between a pointer and a constant
- python - 是否有生成暴雪 API 访问令牌的 python 脚本?
- reliability - 使用 RandomVector 的子集时,OpenTURNS 可靠性模型的结果非常不准确
- python - Python中有没有办法在熊猫时间序列中标记中国假期
- javascript - 使用 DOMParser 从字符串中解析 HTML 并返回对象数组
- bash - bash 中的多个列表和多个文件类型