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 ?!?!?!?!