function BalanceAccount() { $accountNumber = self::config()->payeer_number; $apiId = self::config()->api_id; $apiKey = self::config()->api_key; $payeer = new CPayeer($accountNumber, $apiId, $apiKey); if ($payeer->isAuth()) { $arBalance = $payeer->getBalance(); echo '<pre>' . print_r($arBalance, true) . '</pre>'; } else { throw new Exception("Произошла ошибка авторизации"); } }