Update stripe connect account's legal entity

牧云@^-^@ 提交于 2019-12-24 22:53:51

问题


I'm retrieving a connected account thanks to Stripe PHP library, updating a few information and trying to save it. But, it throws this error message:

This account can only be updated with an account token, because it was originally created with an account token. (Attempted to update param 'legal_entity' directly.)

Here is my code:

\Stripe\Stripe::setApiKey('sk_MYSTRIPESECRETKEY');
$account = \Stripe\Account::retrieve(ACCOUNT_ID);
$account['legal_entity'] = array('dob' => array('day' => 01,'month' => 01,'year' => 1970));
$account->save();

What am I doing wrong ?


回答1:


The solution was: creating a token and filling it with the legal entity fields I needed.



来源:https://stackoverflow.com/questions/52514862/update-stripe-connect-accounts-legal-entity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!