Jump to content

Secure Hash Validation Issues - Payment Gateway - $30 via paypal if can fix it Rate Topic   - - - - -

 
  • djstevie84
  • Senior Member
  • Members
  • Join Date: 25-Jun 06
  • 138 posts

Posted 04 April 2012 - 12:02 AM #1

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

 
  • shankersam
  • Newbie
  • Members
  • Join Date: 09-Jul 12
  • 1 posts

Posted 03 August 2012 - 06:40 AM #2

Hello Stephen,

I face the same problem,

Have you got any solution for that.

Regards