Jump to content
Sign in to follow this  

Realex Oscommerce

Recommended Posts



Thank you for taking time to read this.


I am having alot of issues trying to install the realex redirect add on. Currently in TEST MODE


I downloaded the module from the site,



Follwoed the instructions,

The before_process.php file should be uploaded to the merchants shop (in the same directory as checkout_process.php)


Which is same as index.php so this is where I put that file.


I am using version

Type: OsCommerce 2.2 RC2a



instructions ask to choose and then rename file to realex.php


Install realexmsoscms3 if you are running OSCommerce 2.2 MileStone 3.

Install realexmsoscms2 if you are running OSCommerce 2.2 MileStone 2.


So in the download I renamed the file called

Install realexmsoscms3 if you are running OSCommerce 2.2 MileStone 3



Ok, I edited this file with merchant id and shared secret, when into admin for oscommerce enable the module and added the merchant id and shared secret


I have the module setup as far as I can see. With the files uploaded according to the locations in the download folder.


1. As far as I am awre the return url to provide realex with it http://www.mydomain.co.uk/before_process.php


is this correct?



2. Now I am able to go through checkout using test card numbers but get message after card has been accepted and processed

Your transaction has been successful but there was a problem connecting back to the merchant's web site. Please contact the merchant and advise them that you received this error message. Thank you.!



3.If I try and open the before_process.php file using full url in the browser



I see this error on screen.


Realex error

Hashes dont match - response not authenticated


4. Realex provided me with a log


here is parts of it



''_protocol'' => ''HTTP/1.1'',

''_content'' => ''<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">


<title>406 Not Acceptable</title>


<h1>Not Acceptable</h1>

<p>An appropriate representation of the requested resource /before_process.php could not be found on this server.</p>

<p>Additionally, a 404 Not Found

error was encountered while trying to use an ErrorDocument to handle the request.</p>



Realex say that their servers can not connect to your response URL, can you please ensure that this is set up correctly.


Please can someone explain where things are going wrong as this is the second whole day been stuck with this.


If anyone is using ocomemerce and realex redirect add on please get in touch.


Kind Regards

Share this post

Link to post
Share on other sites

Hi we have implemented this many times, please pm me for more details.


realex 3d redirect on oscommerce is tricky as realex do not allow redirects on the response url, but oscommerce rely on this. So there is a rewrite if the checkout_process.php code to prevent this.

free is often better than cheap

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this