Originally Posted by
MartinKneeshaw
The piece of code that is throwing me the error is below:
if (!isset($response['ResponseCode']) || !is_numeric($response['ResponseCode']) || $response['ResponseCode'] != '0') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT,
'error_message=' . urlencode(MODULE_PAYMENT_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}
Okay, if that's the line that's causing you problems, then rewrite it by removing the long error message, like the existing built-in modules do. ie:
Code:
global $messageStack;
$messageStack->add_session('header', MODULE_PAYMENT_TEXT_ERROR_MESSAGE, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
Bookmarks