Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Stripe payments 条带连接更新已连接的帐户_Stripe Payments - Fatal编程技术网

Stripe payments 条带连接更新已连接的帐户

Stripe payments 条带连接更新已连接的帐户,stripe-payments,Stripe Payments,我正在试验stripe connect 我所做的是,当在我的平台上创建一个供应商时,我也会为他创建一个stripe connect帐户 stripe.accounts.create({type: 'custom', country:'IT'}) 然后我要求新用户完成激活过程并更新帐户 若为个人账户,则为req.body {"business_type":"individual", "company":null, "individual":{ "first_name":"Sam",

我正在试验stripe connect

我所做的是,当在我的平台上创建一个供应商时,我也会为他创建一个stripe connect帐户

stripe.accounts.create({type: 'custom', country:'IT'})
然后我要求新用户完成激活过程并更新帐户

若为个人账户,则为req.body

{"business_type":"individual",
 "company":null,
 "individual":{
     "first_name":"Sam",
     "last_name":"Morrison",
     "address":{
         "city":"Bergamo",
         "line1":"Via Dipinta,5",
         "postal_code":"24129"
     },
     "dob":{ "year":"1979", "month":"03", "day":"14" }
  }
}
但我得到一个错误响应,表明

Received unknown parameter: business_type"

正如@duck所指出的那样

stripe.setApiVersion('2019-03-14');

解决问题

您使用的API版本是什么?2019-02-19年,Connect的结构发生了重大变化——如果您使用的是之前的版本,则会有所不同,您可能需要升级。更新至2019-03-14。setApiVersion'2019-03-14';一切如期!谢谢,你能和我分享一下你正在做的关于如何通过API创建帐户的文档吗?我只能通过表单创建它们。
stripe.setApiVersion('2019-03-14');