In Secure Ebs we will get a error called Error! SecureHash validation failed to solve this issue use below code
open app\code\core\Mage\Secureebs\Block\Standard\Redirect.php
before this line
$form->addField('reference_no', 'hidden', array('name'=>'reference_no', 'value'=>$referenceno));
Paste this code
$secretKey = Mage::getSingleton('secureebs/config')->getSecretKey(); // Our SecretKey
$account_id = Mage::getSingleton('secureebs/config')->getAccountId(); //account ID
$string = "$secretKey|$account_id|$amount|$referenceno|$returnurl|$mode";
$secure_hash = md5($string);
$form->addField('secure_hash','hidden', array('name'=>'secure_hash', 'value'=>$secure_hash));
Enjoy
No comments:
Post a Comment