Zen Cart Logo
Forums / Addon Payment Modules / Realex Redirect Payment Module Issue; 'Hases don't match'

Realex Redirect Payment Module Issue; 'Hases don't match'

Views: 2,554

Results 1 to 3 of 3
3 Dec 2010, 10:16 PM
#1
paddyohanlon avatar

paddyohanlon

New Zenner

Join Date:
Nov 2008
Posts:
2
Plugin Contributions:
0

Realex Redirect Payment Module Issue; 'Hases don't match'

This is not a question but some information I hope will be useful. (If someone can tell me a better place to publish this, please do).

Issue: I migrated Zen Cart to a new host, with payments through the Realex Payments Module (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=825) and started receiving an error after the payment was processed. I move from Blacknight to Dreamhost.

The error: 'Hashes don't match - Response not authenticated'. The error was displayed after being redirected to Page 2 of the checkout process.

The solution: A newer version of PHP was installed on the Dreamhost server. In the Realex Payments Module, specifically in the file 'includes/modules/payments/realex.php', the request $HTTP_POST_VARS was being used to retrieve the order information. $HTTP_POST_VARS is deprecated and was replaced by $_POST since PHP Version 4.1.0. As the request was not supported by that version of that PHP no information was being received back from Realex.

Updating to $_POST solved the problem.

I have updated the Realex Payment Module to include the change...

I spent a stressful couple of days working this out. I hope it helps someone. :)

5 Mar 2011, 12:56 PM
#2
breda avatar

breda

New Zenner

Join Date:
Dec 2009
Posts:
32
Plugin Contributions:
0

Re: Realex Redirect Payment Module Issue; 'Hases don't match'

Thanks that's great.
B

23 Aug 2011, 2:15 PM
#3
alfrizmartin avatar

alfrizmartin

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Realex Redirect Payment Module Issue; 'Hases don't match'

This is awesome, thanks so much Paddy. this fixed my issue. I have been scratching my head for months over this!