Skip to content

Commit

Permalink
Update payfull.php
Browse files Browse the repository at this point in the history
update sha1 to sha256
  • Loading branch information
hazeem1991 committed Feb 6, 2019
1 parent 7813394 commit 287e698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/catalog/model/extension/payment/payfull.php
Expand Up @@ -227,9 +227,9 @@ public function call($params){
$hashString = "";
foreach ($params as $key=>$val) {
$l = mb_strlen($val);
if($l) $hashString .= $l . $val;
$hashString .= $l . $val;
}
$params["hash"] = hash_hmac("sha1", $hashString, $merchantPassword);
$params["hash"] = hash_hmac("sha256", $hashString, $merchantPassword);
//end HASH calculation

$ch = curl_init();
Expand Down Expand Up @@ -279,4 +279,4 @@ public function getMethod($address, $total) {

return $method_data;
}
}
}

0 comments on commit 287e698

Please sign in to comment.