问题
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