Hi,
Having issues with introducing www.ebs.in Secure Hash Validation
There code says I add the PHP
$string = "$secretKey|$account_id|$amount|$refrence_no|$return_url|$mode";
$secure_hash = md5($string);
and to the form
<input name="secure_hash" type="hidden" value="{$secure_hash}" />
I've added the code below to the PHP
$hash = $secret_key|$ebs_account|$ebs_total|$order_id|"$current_location/$index_script?dispatch=payment_notification.return_url&DR={DR}&payment=EBS&order_id=$order_id"|"LIVE";
$secure_hash = md5($hash);
<input name="secure_hash" type="hidden" value="{$secure_hash}" />
When I turn on Hash Validation it fails,
Any one know how to recreate "$secretKey|$account_id|$amount|$refrence_no|$return_url|$mode"; from CS-CART Values?
The form part already contains,
<form action="{$ebs_url}" method="post" name="ebs_form">
<input type=hidden name="reference_no" value="$order_id">
<input type=hidden name="mode" value="LIVE">
<input name="secure_hash" type="hidden" value="{$secure_hash}" />
<input type=hidden name="account_id" value="{$ebs_account}">
<input type=hidden name="amount" value="{$ebs_total}">
I must also state that the script works 100% with hash turned off, any ideas guys?
$30 via paypal who ever can get it right for me
Thanks
Stephen
|
|


