Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default 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"

    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.

  2. #2
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default 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?
    Last edited by dhcernese; 24 Oct 2007 at 03:08 PM.

  3. #3
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default 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.

  4. #4
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default 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...

  5. #5
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

    Default 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


  6. #6
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

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

    Quote Originally Posted by StarDancer View Post
    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

    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
    Code:
     
     
          $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

  7. #7
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

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

    Tried that... didn't work



    Quote Originally Posted by dhcernese View Post
    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
    Code:
     
     
          $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

  8. #8
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

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

    Quote Originally Posted by dhcernese View Post
    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
    A clarification, the MC line should read:
    Code:
    '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.

  9. #9
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

    Default 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!





    Quote Originally Posted by StarDancer View Post
    Tried that... didn't work

  10. #10
    Join Date
    Jun 2007
    Posts
    48
    Plugin Contributions
    0

    Default 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?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. EZ Pages wont go away even though set to 0
    By MYYZTIK in forum Basic Configuration
    Replies: 4
    Last Post: 11 Oct 2011, 10:05 PM
  2. SecurePay Module - Mastercard not working
    By zpyder in forum Addon Payment Modules
    Replies: 9
    Last Post: 19 Jul 2010, 07:41 PM
  3. CC process error even though cards enabled - goemerchant
    By peggyc in forum Addon Payment Modules
    Replies: 25
    Last Post: 6 Aug 2009, 09:48 PM
  4. mastercard not working with securepay
    By Briohny12 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 12 Jan 2008, 03:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR