From b07528020b3dfa96b3923a25e2cebe55cf4e02b7 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Sat, 31 Oct 2015 12:02:19 +0000 Subject: [PATCH] fixed '_secret' <- 'secret' --- src/Merchant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';