News:

Looking for documentation? Take a look on our wiki

Main Menu

Payment Module Moneris

Started by yyzcity, September 08, 2006, 07:18:16 AM

Previous topic - Next topic

yyzcity

Payment processing code for transactions with http://www.moneris.com

Download zip archive moneris.zip ( attached below)

Installation: as regular virtuemart payment module.

Also you will need:

1. Add the following 4 lines to VirtueMart language file:

////////////////////////////////

   var $_PHPSHOP_ERROR_CODE = 'Error Code';
   var $_PHPSHOP_DECLINE = 'Your transaction has been declined.';
   var $_PHPSHOP_APPROVED = 'Your transaction has been approved!';
   var $_PHPSHOP_UNKNOWN_ERROR = 'There was error processing your transaction.  Please blah-blah... for help.';
////////////////////////////////

2. Call Moneris and ask them to activate API for your account. It looks like it is not activated by default.


see screenshots below for other details.

Tested on VirtueMart 1.0.6

Enjoy!



[attachment cleanup by admin]

Burner

1. what line in the lang file does the 4 lines of code go?

2. i get the following on the site w/ the mod installed

** * This ps_moneris class, contains payment processing code * for transactions with http://www.moneris.com * * * @version $Id: ps_moneris.php,v 1.0 2006/09/7 20:02:18 * @package VirtueMart * @subpackage payment * @copyright Copyright (C) 2006 Dmitri Kravtsov yyzcity@hotmail.com. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. * * http://virtuemart.net */ 
Neil
"Burner"

yyzcity

Just add :
/* 
before:        ** * This ps_moneris

yyzcity

re: #1
I mean add that to the file ps_moneris.php.
Or just delete that notice from the file
:)
re: #2
any line

Burner

been testing on my dev site & a get these error msgs -

Error: (Error Code: 476)

Error: Failure in Processing the Payment (ps_moneris)


Neil
"Burner"

yyzcity

You need to call moneris and make sure that API is activated for your account


Burner

still not working & if you have the time you can see the dev site at www.neilwhumphrey.com/wos
Neil
"Burner"

yyzcity

i tried. i could not pass billing info registration. it`s not a problem with payment module.
btw, I installed it recently on php-shop with mambo and it works without any modification. Same with VM 1.07

Burner

#9
could it have to do that i'm not using the real url vs the dev url

also, i notice the language file doesn't work so i'm wondering if i have the code on the wrong lines.
Neil
"Burner"

yyzcity

It can`t  cause any problem at that stage where you are having your problem.
And  it does not matter where exactly in the language file you added those lines ( make sure it is language file for virtuemart! not for Joomla :).
It looks like you are having  some kind of database misconfiguration ( may be fields from other installation (php-shop?). check  Tabe structure for vm_users - it must be exactly as it is in original config.
As I said - this problem is not related to moneris module at all.

yyzcity


Burner

when i change the language file in admin/component/vmart w/ the moneris code the vmart doesn't work

this install never has php-shop & was an orginial install of Joomla

yes, it's jos_users
Neil
"Burner"

yyzcity

weird.
delete all you added and add this lines  again.


  var $_PHPSHOP_ERROR_CODE = 'Error Code';
   var $_PHPSHOP_DECLINE = 'Your transaction has been declined.';
   var $_PHPSHOP_APPROVED = 'Your transaction has been approved!';
   var $_PHPSHOP_UNKNOWN_ERROR = 'There was error processing your transaction.  Please blah-blah... for help.';


if stil problem upload your language file to forum. i`ll check

Burner

#14
english language zip attached

i've left the test site w/ the above file in so you can see the error msg

[attachment cleanup by admin]
Neil
"Burner"