Jump to content
Sign in to follow this  
tomas-a-t

checkout_process.php does NOT show the error

Recommended Posts

I have developed a payment module, and the error functiontion in it, is defined as shown below:

 

function get_error() {

global $HTTP_GET_VARS;

 

$error = array('title' => MODULE_PAYMENT_ERROR_HEADING,

'error' => ((isset($HTTP_GET_VARS['payment_error']) && tep_not_null($HTTP_GET_VARS['payment_error'])) ? stripslashes(urldecode($HTTP_GET_VARS['payment_error'])) : MODULE_PAYMENT_ERROR_MESSAGE));

 

return $error;

}

 

When a payment error occur during the payment process, I have programed the callback PHP code to redirect to checkout_process.php giving some string to the parameter error_message, in other word sth like this: checkout_process.php?error_message=Payment%20not%20completed.

 

The problem is that checkout_process.php does NOT output the content of the GET parameter error_message.

 

I have already defined those 2 constants, to the english language modules/payment folder :

MODULE_PAYMENT_ERROR_HEADING

MODULE_PAYMENT_ERROR_MESSAGE

 

 

What's the problem with the get_error method ?!?!?!?!

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  

×