Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Moneris - eSelectPlus - Error with Error messages...


Recommended Posts

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:




This can be seen in the following html source:


 <div class="contentText">


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' => $error);


Any suggestions? This is a bit of showstopper.



Edited by SudoHacks

Freelance Web Developer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...