Hey Folks,
I believe I have successfully integrated Moneris's eSelectPlus module into OS Commerce 2.3.1, however there is an issue with the error messages. I love the irony...
When I process the order and everything is perfect it seems to go through fine. However when I make some errors in the CC info, like invalid expiry date, or invalid cc number etc. There is a problem outputting the error message. Instead of getting the proper error message I get the following:
"MODULE_PAYMENT_MONERISCAMPG_TEXT_ERROR"
This can be seen in the following html source:
<div class="contentText">
<strong>MODULE_PAYMENT_MONERISCAMPG_TEXT_ERROR</strong>
<p class="messageStackError">MODULE_PAYMENT_MONERISCAMPG_TEXT_ERROR</p>
</div>
This seems to be the revelant function found in: moneriscampg.php
function get_error() {
global $HTTP_GET_VARS;
if (isset($HTTP_GET_VARS['ErrMsg']) && (strlen($HTTP_GET_VARS['ErrMsg']) > 0)) {
$error = stripslashes(urldecode($HTTP_GET_VARS['ErrMsg']));
} elseif (isset($HTTP_GET_VARS['error']) && (strlen($HTTP_GET_VARS['error']) > 0)) {
$error = stripslashes(urldecode($HTTP_GET_VARS['error']));
} else {
$error = MODULE_PAYMENT_MONERISCAMPG_TEXT_ERROR;
}
return array('title' => MODULE_PAYMENT_MONERISCAMPG_TEXT_ERROR,
'error' => $error);
}
Any suggestions? This is a bit of showstopper.
Thanks!