Jump to content



Photo

Moneris add-on problem (eSELECT)


  • Please log in to reply
No replies to this topic

#1   squivo

squivo
  • Members
  • 5 posts
  • Real Name:Steven
  • Gender:Male
  • Location:CANADA

Posted 09 May 2009 - 08:33

This is my first post on this site. I've been tearing apart version 2.2 rc2a since Oct last year. It's pretty awesome code and thanks to all contributors for their thorough and hard work.


After installing the moneris eSELECT module (API), i (obviously) tried a test order and got a PHP error after entering the credit card information and clicking on 'confirm order'.

Fatal error: Cannot use object of type order as array in /(my folder path)/modules/payment/monerisusmpg.php on line 702

At Line 702 in modules/payment/monerisusmgp.php is the following:

$custInfo->setInstructions($order['info']['comment']);

Changed it to this and you won't have any more problems

$custInfo->setInstructions($order->info['comment']);


Forgive me if this had already been mentioned, if not, I hope it helps. I emailed Moneris to have their code changed/updated so this problem doesn't happen to anyone else. Who knows if they'll change it.