Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Error! Secure Hash validation failed issue in Secure Ebs in Magento
 
pradeep_kumar67
Sr. Member
 
Avatar
Total Posts:  160
Joined:  2010-06-24
Bangalore
 

Hi,

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

File Attachments
Redirect.php  (File Size: 4KB - Downloads: 131)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top