Jump to content

Payment module problem


piribipipi

Recommended Posts

Hi, im not sure if this is the correct forum...

 

I developed a module some time ago, but now im testing again and im having problems with it :S

 

Its a payment module. Payment its done in a external site, and when payment is finished, im redirected to my store. Then a file called validation.php is loaded. Some parameters are sent from the external site to my store. The problem is here. Here is the start of my validation.php file:

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');

$response = Tools::getValue('response');
echo $response;

The value of $response is empty (but it have a value!!!!!). If i move that code to the top:

$response = Tools::getValue('response');
echo $response;

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');


the value is showed correctly... why its happening???  its a problem with the config.inc.php file that its removing all the post values????

 

help please!!!! thanks

Link to comment
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
×
×
  • Create New...