diff --git a/src/ApiRequest.php b/src/ApiRequest.php index 2e6e9fb..6f5622d 100644 --- a/src/ApiRequest.php +++ b/src/ApiRequest.php @@ -408,6 +408,7 @@ public function sendPayoutCreateRequest(PayoutInterface $payout) /** @inheritdoc */ public function sendReportChartRequest(array $params): array { + $this->setJsonDebugResponse(false); return $this->sendGetRequest(self::REPORT_CHART_API . '/?' . http_build_query($params)); } diff --git a/src/Examples/getReportChart.php b/src/Examples/getReportChart.php index 0439751..e01611f 100644 --- a/src/Examples/getReportChart.php +++ b/src/Examples/getReportChart.php @@ -13,8 +13,6 @@ $apiRequest = new ApiRequest($merchant); // Включить режим отладки (закомментируйте или удалите в рабочей программе!) $apiRequest->setDebugMode(); -// Принимать ответ строкой в режиме отладки (закомментируйте или удалите в рабочей программе!) -$apiRequest->setJsonDebugResponse(false); // Переключиться на тестовый сервер (закомментируйте или удалите в рабочей программе!) $apiRequest->setSandboxMode();