diff --git a/src/Merchant.php b/src/Merchant.php index 45c1797..2dd3ad6 100644 --- a/src/Merchant.php +++ b/src/Merchant.php @@ -88,7 +88,7 @@ public function validateNewVersion($data) } unset($iks['ik_sign']); foreach ($iks as $k=>$v) if (substr($k,0,3)!='ik_') unset($iks[$k]); - array_push($iks, $this->secret); + array_push($iks, $this->_secret); ksort($iks, SORT_STRING); $hash = base64_encode(md5(implode(':',$iks), true)); if ($hash != strtolower($data['ik_sign'])) { @@ -114,7 +114,7 @@ public function validateOldVersion($data) } unset($iks['ik_sign_hash'], $iks['ik_payment_desc'], $iks['ik_payment_timestamp']); foreach ($iks as $k=>$v) if (substr($k,0,3)!='ik_') unset($iks[$k]); - array_push($iks, $this->secret); + array_push($iks, $this->_secret); $hash = md5(implode(':', $iks)); if ($hash != strtolower($data['ik_sign_hash'])) { return 'Wrong hash';