diff --git a/src/Http/Classes/Click/Response.php b/src/Http/Classes/Click/Response.php index 2dce3f3..6259bf9 100644 --- a/src/Http/Classes/Click/Response.php +++ b/src/Http/Classes/Click/Response.php @@ -80,6 +80,9 @@ public function send(){ $params = PaymentSystemService::getPaymentSystemParamsCollect(PaymentSystem::CLICK); $timestamp = time(); $digest = sha1($timestamp . $params['secret_key']); - return $this->result; + + if(env('APP_ENV') != 'testing') + header('Content-Type: application/json; charset=UTF-8'); + echo json_encode($this->result); } }