Stripe Connect更新已连接帐户

时间:2019-03-26 23:08:17

标签: stripe-payments

我正在尝试条纹连接

我要做的是在平台上创建供应商时,我还为他创建了一个条带连接帐户

stripe.accounts.create({type: 'custom', country:'IT'})

然后我要求新用户完成激活过程并更新帐户https://stripe.com/docs/api/accounts/update

stripe.accounts.update(id, req.body);

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"

1 个答案:

答案 0 :(得分:1)

如@duck所指出

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

解决问题!