Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default customer can't purchase with credit card expiry year 2023

    According to my customer, the expiry date for credit card entry only goes to 2022.

    Where must I go to add more expiry years?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: customer can't purchase with credit card expiry year 2023

    That'll be in your payment module.

    So ... which payment module? and which ZC version?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: customer can't purchase with credit card expiry year 2023

    Oh right. That must be EWAY and zencart 1.3.9h

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: customer can't purchase with credit card expiry year 2023

    See the selection() function in the module:

    The built-in ZC modules use 15 years as the range:
    Code:
        for ($i=$today['year']; $i < $today['year']+15; $i++) {
          $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
        }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: customer can't purchase with credit card expiry year 2023

    so I can just make it +20 or +25 ?

    I have found a file called cc_validation.php - is that similar?

    Code:
      $current_year = date('Y');
        if (strlen($expiry_y) == 2) $expiry_y = intval(substr($current_year, 0, 2) . $expiry_y);
        if (is_numeric($expiry_y) && ($expiry_y >= $current_year) && ($expiry_y <= ($current_year + 10))) {
          $this->cc_expiry_year = $expiry_y;
        } else {
          return -3;
        }
    Last edited by tpeck; 6 Jul 2013 at 02:56 AM.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: customer can't purchase with credit card expiry year 2023

    Quote Originally Posted by tpeck View Post
    I have found a file called cc_validation.php - is that similar?
    No. Go into your payment module that you added to /includes/modules/payment/
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: customer can't purchase with credit card expiry year 2023

    the php file is eway.php and the codng for that bit is:

    Code:
    $today = getdate();
          for ($i=$today['year']; $i < $today['year']+10; $i++) {
            $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
          }
    ...so it looks like that is where I have come unstuck.

    I'll change it to +15 for now, but perhaps upgrading zencart to 1.5.1 might solve more issues as well.

    Thanks for your help.

 

 

Similar Threads

  1. Credit card expiry date problem: can't put later than 2017
    By dealbyethan.com in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 2 Mar 2009, 07:27 PM
  2. Customer can't use credit card
    By AvenueBeads in forum General Questions
    Replies: 1
    Last Post: 3 Aug 2007, 12:41 AM
  3. Customer with Credit Card cannot use Discount Coupon
    By ksoup in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 12 May 2007, 06:03 PM
  4. Credit Card Expiry Date in with Authorize net
    By fauxtog in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 6 Sep 2006, 05:51 AM

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