Zen Cart Logo
Forums / Addon Payment Modules / No Mastercard even though it's enabled SecurePay?

No Mastercard even though it's enabled SecurePay?

Locked

Views: 4,793

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
24 Oct 2007, 12:34 PM
#1
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

No Mastercard even though it's enabled SecurePay?

We just went live with our subscription site on 10/10/07, www.SacredFireMagazine.com

1.3.6 + SecurePay.php

We neglected to test Mastercard previously, but all card types are enabled in the payment module and on the SecurePay side (which I'll have to re-verify)-- the "Step 2" of checkout returns this for my customer and my Mastercard (live mode):

"The Credit Card Number does not match the Credit Card Type"
:huh:
The card I tested begins with 5291 (16 digits).

Has anyone seen this? Unfortunately the SecurePay module does not (yet) do database capture and logging.

24 Oct 2007, 2:02 PM
#2
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

I get the same thing with my Amex even though my Discover card and Visa work -- isn't the a result of posting a 'validation' request and the merchant is supposed to return the type. Perhaps the strings don't match?

Anyone out there using SecurePay tested with all the card types recently?

24 Oct 2007, 2:26 PM
#3
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

This interaction preceeds any communication with the merchant but is an interaction between the SecurePay.php modules and cc_validation.php:

It appears includes/classes/cc_validation.php uses odd strings. For example "Master Card" when the proper name is "MasterCard". Has anyone debugged this area before? I haven't stepped through it all yet.

24 Oct 2007, 2:52 PM
#4
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

New SecurePay.php module 2.1.1 fixes the string mismatching for Amex and MasterCard. I don't know when cc_validation.php changed or if these ever worked together, who knows...

17 Dec 2007, 11:32 PM
#5
stardancer avatar

stardancer

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

I'm using the 2.1.1 module on the new ZenCart and am having the problem with mastercard and AMex. Can you give me any hint?

thanks
StarDancer

:frusty:

18 Dec 2007, 1:57 PM
#6
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

StarDancer:

I'm using the 2.1.1 module on the new ZenCart and am having the problem with mastercard and AMex. Can you give me any hint?

thanks
StarDancer

:frusty:This is because in 1.3.8 they changed the string for MasterCard yet again in a core file includes/classes/cc_validation.php

I had not looked at 1.3.8 yet.. ..so, you'll need to edit includes/modules/payment/SecurePay.php

Look for

 
 
      $this->available_cc = array(
        'Visa' => 'Visa',
        'Master Card' => 'MasterCard',
        'American Express' => 'American Express',
        'Discover' => 'Discover'
      );

and take the space out from between "Master Card". I have not tested this, but I'm fairly sure this is the cause and solution.

sigh

18 Dec 2007, 4:32 PM
#7
stardancer avatar

stardancer

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Tried that... didn't work :frusty:

dhcernese:

This is because in 1.3.8 they changed the string for MasterCard yet again in a core file includes/classes/cc_validation.php

I had not looked at 1.3.8 yet.. ..so, you'll need to edit includes/modules/payment/SecurePay.php

Look for

  $this->available_cc = array(
    'Visa' => 'Visa',
    'Master Card' => 'MasterCard',
    'American Express' => 'American Express',
    'Discover' => 'Discover'
  );
> 
> and take the space out from between "Master Card".  I have not tested this, but I'm fairly sure this is the cause and solution.
>  
> sigh
18 Dec 2007, 4:53 PM
#8
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

dhcernese:

and take the space out from between "Master Card". I have not tested this, but I'm fairly sure this is the cause and solution.

sighA clarification, the MC line should read:

'MasterCard' => 'MasterCard'

This is how it used to be in some verion(s) prior to 1.3.6 and now again in 1.3.8 (as far as I can tell).

In fact, the whole name translation may now have become unnecessary, but I'm taking it out yet.

18 Dec 2007, 5:28 PM
#9
stardancer avatar

stardancer

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

I made the change Dan suggested offline then re-uploaded the SecurePay.php file and that seemed to make the difference and MasterCard worked. Don't know why this didn't fix it when I was making the change using FTP but it didn't.

But thank you Dan for all your help!!! You Rock!
:clap:

StarDancer:

Tried that... didn't work :frusty:

10 Jan 2008, 7:05 PM
#10
briohny12 avatar

briohny12

New Zenner

Join Date:
Jun 2007
Posts:
48
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

I'm having the same problem. Module 2.1.1 but with ZenCart version 1.3.7

I tried the above code change but no luck. Does anyone have any ideas?

10 Jan 2008, 7:43 PM
#11
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Briohny12:

I'm having the same problem. Module 2.1.1 but with ZenCart version 1.3.7

I tried the above code change but no luck. Does anyone have any ideas?Re-read more carefully. This modification is for 1.3.8, the module 2.1.1 works as-is with 1.3.6 and should also work as-is with 1.3.7.

10 Jan 2008, 8:28 PM
#12
briohny12 avatar

briohny12

New Zenner

Join Date:
Jun 2007
Posts:
48
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Thanks dhcernese, but for some reason it's not working for me. I haven't altered any of the code and I even downloaded the module again to re-upload. Still with no luck. Can you suggest what else i should try to fix.

:mellow:

11 Jan 2008, 9:56 AM
#13
briohny12 avatar

briohny12

New Zenner

Join Date:
Jun 2007
Posts:
48
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Please has anyone else had this problem??

I have Zencart Version 1.3.7

I installed the Securepay module 2.1.1

Everything works fine except for Mastercard. It returns the error message "The Credit Card Number does not match the Credit Card Type."

Securepay are telling me that they are seeing the transaction however the information is being passed in an incorrect format.

I understand that the above fix only applies to 1.3.8, but am I doing something wrong with my version or is there a fix for 1.3.7?

I have tried uninstalling, deleting files both locally and on the server and then re-uploading and then re-installing - still the same error.

Any advice would be very much appreciated.

Thank you in advance.
Briohny

11 Jan 2008, 4:07 PM
#14
briohny12 avatar

briohny12

New Zenner

Join Date:
Jun 2007
Posts:
48
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Anyone?? I'm having no luck with anything i try.

:frusty:

12 Jan 2008, 1:05 PM
#15
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

Briohny12:

Please has anyone else had this problem??

I have Zencart Version 1.3.7

I installed the Securepay module 2.1.1

Everything works fine except for Mastercard. It returns the error message "The Credit Card Number does not match the Credit Card Type."

Securepay are telling me that they are seeing the transaction however the information is being passed in an incorrect format.

I understand that the above fix only applies to 1.3.8, but am I doing something wrong with my version or is there a fix for 1.3.7?

I have tried uninstalling, deleting files both locally and on the server and then re-uploading and then re-installing - still the same error.

Any advice would be very much appreciated.

Thank you in advance.
BriohnyIf you get that error then NOTHING is sent to SecurePay. I can't imagine what they're seeing. I'd be interested in details from SecurePay on what it is they think they're getting from you. I also believe it's a Red Herring.. ..and probably unrelated to this problem.

To diagnose this, simply compare the credit card name strings in includes/classes/cc_validation.php
with those in includes/modules/payment/SecurePay.php

12 Jan 2008, 1:13 PM
#16
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

in* includes/classes/cc_validation.php *there should be a line in function *validate *something like this

      $this->cc_type = 'Master Card';
```either with or without the space or different capilization.  I could download your version and check, but it's more direct if you look at your installation.

Then compare the line in  *includes/modules/payment/SecurePay.php *that you've seen before, 
    'Master Card' => 'MasterCard',

Of course, make sure when you test with MasterCard you actually set the pull-down menu to MasterCard before processing it.
14 Jan 2008, 9:54 AM
#17
briohny12 avatar

briohny12

New Zenner

Join Date:
Jun 2007
Posts:
48
Plugin Contributions:
0

Re: No Mastercard even though it's enabled SecurePay?

:clap:Thank you dhcernese! This solved my problem. Thank you SO much for getting back to me.