Forums / Addon Payment Modules / Moneris Payment Module 1-24

Moneris Payment Module 1-24

Locked

Started by mcwilliams on 9 Dec 2010, 3:59 PM · Views: 1,152

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
9 Dec 2010, 3:59 PM
#1
mcwilliams avatar

mcwilliams

New Zenner

Join Date:
Oct 2010
Posts:
3
Plugin Contributions:
0

Moneris Payment Module 1-24

I have installed the Moneris Payment Module 1-24 on Zen Cart version 1.3.9d. When a credit card transaction is Approved by Moneris the order completes successfully. However, if the transaction is Declined (response code > 49), the error message is not displayed. It my case a page not found, HTTP 406 is displayed.

Looking at the code in in the monerisselectplus.php script it looks like there should be a page redirect to the checkout_payment page with an error message. See the code below in bold text;

function before_process()
{
global $_POST;

	if ( (intval($_POST['response_code']) < 50) && (is_numeric($_POST['response_code'])) )
	{
		$this->moneris_order_id = $_POST['response_order_id'];
		$this->moneris_response_variables = implode(';', $_POST);
		return false;
	}
	else
	{
		**zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_MONERISESELECTPLUS_TEXT_DECLINED_MESSAGE), 'SSL', true, false));**		}
}

If anyone has experienced a similar problem with this module and has found a fix I would appreciate your help. Thanks.