Файловый менеджер - Редактировать - /home/d46091/udyogaadhaar.net/blog-post/images/698279/atom.tar
Назад
TransactionResponse.php 0000644 00000001475 15026514404 0011271 0 ustar 00 <?php class TransactionResponse { private $respHashKey = ""; /** * @return string */ public function getRespHashKey() { return $this->respHashKey; } /** * @param string $respHashKey */ public function setRespHashKey($respHashKey) { $this->respHashKey = $respHashKey; } public function validateResponse($responseParams) { $str = $responseParams["mmp_txn"].$responseParams["mer_txn"].$responseParams["f_code"].$responseParams["prod"].$responseParams["discriminator"].$responseParams["amt"].$responseParams["bank_txn"]; $signature = hash_hmac("sha512",$str,$this->respHashKey,false); if($signature == $responseParams["signature"]){ return true; } else { return false; } } } ?>