Forums / Addon Payment Modules / Moneris / eSelect Plus Payment Module

Moneris / eSelect Plus Payment Module

Views: 51,828

Results 1 to 20 of 94
13 May 2006, 7:02 PM
#1
sdwood avatar

sdwood

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Moneris / eSelect Plus Payment Module

I'm reviving this thread about Moneris / eSelect from the archives, as there appeared to be no resolution at the time it was locked.

cloelke:

as of Feb 12 they will not longer support the method used.

Cloelke implies that there are changes necessary to the eselect_api module. Can anyone confirm this? If so what is the nature of the changes?

coredesign:

I am working with Moneris Integration Support to sort out the eslect_api contribution. Hoping to hear back from them early next week and will post their response as soon as its available.

Coredesign, have they responded to your request?

Are there people out there who are presently running ZenCart with processing with through Moneris? Reading this thread one gets the impression that payments would have ceased functioning as of Feb 12. If that's indeed true I find it hard to believe there's been no further mention of it here. Does the silence mean all is well, or that nobody actually uses the eselect_api module in production?

Lastly, does anyone have any comments about the Moneris / ZenCart relationship? I'm curious to know how supportive people feel they are when it comes to integration issues.

Regards,
Steven

--
Steven Wood
Ikoro Digital Inc

10 Jul 2006, 3:14 PM
#2
moxy avatar

moxy

New Zenner

Join Date:
Jul 2006
Posts:
24
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

I'm about to set up a simple shopping cart and would like to use zencart. But my client is committed to processing via Moneris.. Has there been any resolution to this - or more simply, is it possible and/or relatively easy to use zencart with Moneris?

Thanks in advance...

28 Aug 2006, 8:20 PM
#3
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

I'm also finally at the point where I am ready to set up the credit card processing for my zencart store, and am looking for a Moneris payment module. Any updates on this? Would the osCommerce one work?

28 Aug 2006, 9:35 PM
#4
coredesign avatar

coredesign

New Zenner

Join Date:
Mar 2005
Location:
Toronto Canada
Posts:
14
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

This was the "fix" provided by Moneris Integration Specialist, Christian Abdel-Malek:

"Please ensure that you do not have any leading space in your mpgClasses.php file as that has been known to cause several errors in sending transactions not only in zencart but also in previous oscommerce transactions that I have dealt with in the past."

26 Sep 2006, 12:41 AM
#5
aasaria avatar

aasaria

New Zenner

Join Date:
Feb 2006
Posts:
3
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Did people get this solved? I have a working e-select Moneris module working. Let me know if you need it.

27 Sep 2006, 5:42 PM
#6
duckydoodles_com avatar

duckydoodles_com

New Zenner

Join Date:
May 2006
Location:
Windsor, Ontario
Posts:
64
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

aasaria:

Did people get this solved? I have a working e-select Moneris module working. Let me know if you need it.

Hello aasaria! I would love it if you could send me the working e-select Moneris module. What version of Zen Cart are you using? If you could please send it to [email protected] that would be much appreciated, thank-you. :D

  • Steve

My store:
http://www.duckydoodles.com

28 Sep 2006, 3:38 AM
#7
jstushnoff avatar

jstushnoff

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

I had got my eSelect Payment Module working too, but I can't remember what I did (it was a while ago). It did have something to do with downloading the latest MPG classes from Moneris though.
BIG PROBLEM THOUGH! I just found out yesterday. After using it for a few months, we've just discovered that orders over $1000 process normally on Zen Carts end (no errors), but the transaction is not recorded with Moneris! :ohmy: Anybody know what might be the problem? We've lost a few thousand dollars worth of merchandise that was shipped before we noticed the problem!
I will post the fixes if/when I get them all figured out, but if anyone has figured this out yet, or has any ideas, please let me know ASAP.

28 Sep 2006, 7:04 AM
#8
jstushnoff avatar

jstushnoff

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

:D OK, it seems like I've got the problem fixed.
I believe I originally started with the eSelect Plus/Moneris Payment Module for Zen v1.2.4, written by NetworkDad.
Instead of using the supplied mpgClasses.php file, I downloaded the latest "PHP API" from
https://www3.moneris.com/connect/en/process/apis/PHP/
Make sure you open the file and change " MONERIS_HOST" to be 'www3.moneris.com' when you want to take the store into the 'Production' environment (instead of just testing)
For more information go to CHAPTER 11 on this PDF:
https://www3.moneris.com/connect/en/download/feb05/PHP/eSELECTplus_PHP_IG.pdf

I then made modifications to eselect_api.php according to stealthman from this post http://www.zen-cart.com/forum/showthread.php?t=15013
Make sure you get the "if ($response_code == "null")" condition included in the script (3/4 of the way down the last bunch of Code) or you, nor the customer, will have no indication if the cc processing fails! (I missed putting that in, as I think the rest of the code was already included in the module I downloaded)
Here's the biggie for orders over $1000. On line 241, the code should be changed from

	  amount => number_format($order->info['total'], 2),

to

	  amount => number_format($order->info['total'], 2, '.', ''),

note the added , '.', ''),
This makes sure there is NO thousands separator instead of the default ' separator.
Moneris (CANADA) requires a number with only a decimal place separator of . and no other separators!
For more information go to APPENDIX A on this PDF:
https://www3.moneris.com/connect/en/download/feb05/PHP/eSELECTplus_PHP_IG.pdf

BTW, I really don't know PHP, so if anyone can check and correct anything please leave a post here.
Also, does anyone know how to submit this module with updates for possible inclusion on the community, or does anyone know where you can get the original anymore?
If anyone else has made any other improvements please leave a post for those of us still using this module. Thanks

1 Oct 2006, 6:08 PM
#9
aasaria avatar

aasaria

New Zenner

Join Date:
Feb 2006
Posts:
3
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Nice find on the thousands separator! I would have missed that.

Please note that in stealman's he calculates the next order ID by incrementing the last order ID. In the code as far as I can see, this isn't used anywhere except stored in a DB. This is probably because he doesn't show another part of code which allows invoices to display transaction information.

Please note that incrementing the last order ID is, technically, not a correct way to find the current order ID. You see, the way Zen works, it only gives an Order ID to an order AFTER it has been processed (with payment). Before that, the customer could cancel their order. So the problem is that when you do a transaction, you have no simple way to associate it with an order until after the transaction has taken place (there are other functions in the payment modules that help do that).

The problem could occur that two customers are paying at the same time and simply incrementing the last order ID will give both of the transactions the same "next order id" value. This would become a very noticable problem if you have many orders per hour.

You can ignore this advice if you don't care about showing tx info in your invoices. The code will work fine.

1 Oct 2006, 6:15 PM
#10
aasaria avatar

aasaria

New Zenner

Join Date:
Feb 2006
Posts:
3
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Also, with regards to getting a "NULL" response from Moneris.

This happens in two cases:

  1. The moneris server was unreachable (the server is down, your internet connection is down, etc.)
  2. The Moneris server took too long to reply

In the second case, it gets tricky becauase it is possible that the Moneris server got your transaction, processed it properly, and charged the card but just didn't have enough time to reply and say "yo, it's all good". In this case, with the code as is, your store will give a customer an error and make them enter their credit card info again.

Now the problem here is that the code as is generates a new order id ($oid) every time so the second time the customer will enter their credit card info, it will process as a second trasaction and double bill the customer. Making the oid persist will cause you other problems (e.g. the customer can change stuff in their cart after the first NULL response and the orders are no longer the same).

Solution? Well for both cases 1 & 2 our store has decided it is best to tell the customer, hey, your transaction went fine. Process the order and use a secondary, human way to process the card. In this case, our human operator will use the SAME moneris order id so that if the original order did go through, the moneris server will say "transaction already done" and avoid the double bill.

basically my advice is that if you get a null, don't just tell the customer to enter data again. because if the server is down (case 1) this just means frustration for the customer. and if the tx did timeout, it is possible it still went through.

18 Oct 2006, 7:56 PM
#11
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Hi All,

Does anyone have a working copy of this mod that they could post or send me? I've been looking a for Moneris solution for a while.

Feel free to PM me.

Cheers,

Colin

8 Nov 2006, 9:51 PM
#12
coeus avatar

coeus

New Zenner

Join Date:
Jan 2005
Posts:
12
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Just a question,

Can't their oscommerce module work with zen-cart?

23 Nov 2006, 8:36 PM
#13
jegelstaff avatar

jegelstaff

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Hello,

I am wondering if out of this useful discussion an official working version of the this payment module was developed, and if so, could it be posted in the official downloads area?

Obviously several people have working versions. I'm new around here, but surly it can't be hard to get something like this posted on the zen-cart.com site?

Thank you very much to the contributors here who have shared their knowledge. With that it should be at least possible to recreate a working version of the module, if it comes to that!

--Julian

7 Apr 2007, 9:07 PM
#14
weekend_camper avatar

weekend_camper

New Zenner

Join Date:
Apr 2007
Posts:
8
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

coredesign:

This was the "fix" provided by Moneris Integration Specialist, Christian Abdel-Malek:

"Please ensure that you do not have any leading space in your mpgClasses.php file as that has been known to cause several errors in sending transactions not only in zencart but also in previous oscommerce transactions that I have dealt with in the past."
WOW!

that helped clear one hurdle at least.

for those that are still getting "header already sent" messages,

modify the mpgClasses.php file at the very beginning to take away ANY blank spaces that maybe hiding hidden characters:

<?php

#################### mpgGlobals ###########################################


class mpgGlobals{

becomes:

<?php
################### mpgGlobals #############

the bottom part is the same:

}//end class


?>

becomes:

}//end class
?>

^^ NO spaces at all after "?>"

Now .... to actually get it talking to the Moneris servers. :yuck:

25 Apr 2007, 9:19 PM
#15
weekend_camper avatar

weekend_camper

New Zenner

Join Date:
Apr 2007
Posts:
8
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Anyone have a working module? I'm not getting the customer info to the Moneris servers.

25 Apr 2007, 10:25 PM
#16
b18cya avatar

b18cya

New Zenner

Join Date:
Feb 2007
Posts:
36
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

x2 , need a working module

26 Apr 2007, 1:37 PM
#17
b18cya avatar

b18cya

New Zenner

Join Date:
Feb 2007
Posts:
36
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

bump..anyone....

27 Apr 2007, 4:47 AM
#18
weekend_camper avatar

weekend_camper

New Zenner

Join Date:
Apr 2007
Posts:
8
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

b18cya:

bump..anyone....
b18cya, the module does work as it stands.

Two things to watch for:

1 - the spacing in the provided 2.02 version of mpgClasses.php (above)

2 - that the default setting of this is production, not testing servers (check readme.txt in the zip files).

If its something else, then I'll try to help here. Just give a few details.

28 Apr 2007, 7:12 PM
#19
b18cya avatar

b18cya

New Zenner

Join Date:
Feb 2007
Posts:
36
Plugin Contributions:
0

Re: Moneris / eSelect Plus Payment Module

Oh alright, so once you do that, the module works perfectly fine with no issues?

28 Apr 2007, 7:20 PM
#20
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Moneris / eSelect Plus Payment Module

I got this working for a client in very similar fashion to what is described above and it looks pretty reliable.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)