Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length


Need Professional Support? Head over to the VirtueMart Experts of vm-expert.com and see what they can do for you.

  Advanced search

216589 Posts in 58326 Topics- by 87989 Members - Latest Member: Gavin58614
Pages: [1] 2 3 ... 5   Go Down
Print
Author Topic: Payment Module Moneris  (Read 54961 times)
yyzcity
Newbie
*
Posts: 18


View Profile
« 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!


* moneris.zip (8.35 KB - downloaded 948 times.)

* config1.jpg (24.63 KB, 550x438 - viewed 1763 times.)

* config2.jpg (24.95 KB, 800x380 - viewed 1633 times.)

* orderpage.jpg (14.5 KB, 708x212 - viewed 1557 times.)
« Last Edit: September 08, 2006, 07:23:09 am by yyzcity » Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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 */ 
Logged

Neil
"Burner"
yyzcity
Newbie
*
Posts: 18


View Profile
« Reply #2 on: October 12, 2006, 00:50:17 am »

Just add :
/* 
before:        ** * This ps_moneris
Logged
yyzcity
Newbie
*
Posts: 18


View Profile
« 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
Smiley
re: #2
any line
Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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)


Logged

Neil
"Burner"
yyzcity
Newbie
*
Posts: 18


View Profile
« 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
Logged
yyzcity
Newbie
*
Posts: 18


View Profile
« Reply #6 on: October 12, 2006, 08:01:58 am »

responce codes: https://www3.moneris.com/connect/en/download/feb05/misc/Response_Codes.pdf
Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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
Logged

Neil
"Burner"
yyzcity
Newbie
*
Posts: 18


View Profile
« 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
Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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.
« Last Edit: October 17, 2006, 05:28:51 am by Burner » Logged

Neil
"Burner"
yyzcity
Newbie
*
Posts: 18


View Profile
« 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 Smiley.
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.
Logged
yyzcity
Newbie
*
Posts: 18


View Profile
« Reply #11 on: October 17, 2006, 07:21:57 am »

i mean jos_users
Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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
Logged

Neil
"Burner"
yyzcity
Newbie
*
Posts: 18


View Profile
« 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
Logged
Burner
Newbie
*
Posts: 38


View Profile
« 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

* english.zip (22.97 KB - downloaded 609 times.)
« Last Edit: October 18, 2006, 00:24:57 am by Burner » Logged

Neil
"Burner"
Pages: [1] 2 3 ... 5   Go Up
Print
Jump to: