Author Topic: Payment Module Moneris  (Read 104628 times)

yyzcity

  • Beginner
  • *
  • Posts: 18
Payment Module Moneris
« on: September 08, 2006, 07:18:16 am »
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

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #1 on: October 12, 2006, 00:43:06 am »
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

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #2 on: October 12, 2006, 00:50:17 am »
Just add :
/* 
before:        ** * This ps_moneris

yyzcity

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #3 on: October 12, 2006, 00:58:11 am »
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

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #4 on: October 12, 2006, 01:32:49 am »
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

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #5 on: October 12, 2006, 07:51:42 am »
You need to call moneris and make sure that API is activated for your account

yyzcity

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #6 on: October 12, 2006, 08:01:58 am »

Burner

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #7 on: October 17, 2006, 01:06:16 am »
still not working & if you have the time you can see the dev site at www.neilwhumphrey.com/wos
Neil
"Burner"

yyzcity

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #8 on: October 17, 2006, 03:50:50 am »
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

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #9 on: October 17, 2006, 04:31:30 am »
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

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #10 on: October 17, 2006, 07:14:29 am »
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

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #11 on: October 17, 2006, 07:21:57 am »
i mean jos_users

Burner

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #12 on: October 17, 2006, 08:18:10 am »
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

  • Beginner
  • *
  • Posts: 18
Re: Payment Module Moneris
« Reply #13 on: October 17, 2006, 08:24:08 am »
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

  • Beginner
  • *
  • Posts: 38
Re: Payment Module Moneris
« Reply #14 on: October 18, 2006, 00:23:07 am »
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"