Cartalyst\Stripe\Api\Account::verify PHP Method

verify() public method

Updates an existing account.
public verify ( string $accountId, string $file, $purpose ) : array
$accountId string
$file string
return array
    public function verify($accountId, $file, $purpose)
    {
        $upload = (new FileUploads($this->config))->create($file, $purpose, ['Stripe-Account' => $accountId]);
        $this->update($accountId, ['legal_entity' => ['verification' => ['document' => $upload['id']]]]);
        return $this->_get('accounts/' . $accountId);
    }