From ef06235b616ca4eeb7b734af6f54c504f9b7da0c Mon Sep 17 00:00:00 2001 From: shaxzodbek-uzb <47610909+shaxzodbek-uzb@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:36:29 +0500 Subject: [PATCH] Update Response.php --- src/Http/Classes/Click/Response.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }