Skip to content

Commit

Permalink
click response
Browse files Browse the repository at this point in the history
  • Loading branch information
shaxzodbek-uzb committed Apr 9, 2019
1 parent 4ee7a1c commit af4588d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Http/Classes/Click/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,9 @@ public function setResult($status = null, $params = null)
*
*/
public function send(){

if (env('APP_ENV') != 'testing')
header('Content-Type: application/json;');

$params = PaymentSystemService::getPaymentSystemParamsCollect(PaymentSystem::CLICK);
$timestamp = time();
$digest = sha1($timestamp . $params['secret_key']);

if (env('APP_ENV') != 'testing')
header('Auth: ' . $params['merchant_id'].':'.$digest.':'.$timestamp.';');

return json_encode($this->result);
return $this->result;
}
}

0 comments on commit af4588d

Please sign in to comment.