If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Credit card expiry date problem: can't put later than 2017

Credit card expiry date problem: can't put later than 2017

Locked

Started by dealbyethan_com on 15 Feb 2008, 10:52 AM · Views: 4,649

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
15 Feb 2008, 10:52 AM
#1
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Post #1 by dealbyethan_com

Hi,

I have a potential customer but he told me that his credit card expiry date is 2018 but my web site only allows up to 2017. Is it possible to increase the range? Please advise. Thanks.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

15 Feb 2008, 9:02 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Find this in your payment module, and change the "+10" to "+11":```
for ($i=$today['year']; $i < $today['year']+10; $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.

16 Feb 2008, 3:50 AM
#3
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Post #3 by dealbyethan_com

Hi DrByte,

Thanks for your help. I did a search using the Developers Tool Kit and found several entries.

includes/modules/payment/authorizenet.php
includes/modules/payment/authorizenet_aim.php
includes/modules/payment/cc.php
includes/modules/payment/linkpoint_api.php

So I am going to change the "+10" to "+11" in these files.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

16 Feb 2008, 3:57 AM
#4
marcelo63 avatar

marcelo63

Zen Follower

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

Post #4 by marcelo63

dealbyethan.com:

Hi DrByte,

Thanks for your help. I did a search using the Developers Tool Kit and found several entries.

includes/modules/payment/authorizenet.php
includes/modules/payment/authorizenet_aim.php
includes/modules/payment/cc.php
includes/modules/payment/linkpoint_api.php

So I am going to change the "+10" to "+11" in these files.

authorize.net and Link Point are American Processors.
You should change cc and/or your cc provider

22 Feb 2008, 5:57 PM
#5
rockatansky avatar

rockatansky

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

Post #5 by rockatansky

I still cant fix this. Please help. This is what my cc.php contains:

define('MODULE_PAYMENT_CC_TEXT_TITLE', 'Credit Card');
define('MODULE_PAYMENT_CC_TEXT_DESCRIPTION', 'Credit Card Test Info:<br /><br />CC#: 4111111111111111<br />Expiration: Any');
define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_TYPE', 'Credit Card Type:');
define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER', 'Card Owner's Name:');
define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER', 'Card Number:');
define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVV', 'CVV Number (<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . 'More Info' . '</a>)');
define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES', 'Expiration Date:');
define('MODULE_PAYMENT_CC_TEXT_JS_CC_OWNER', '* The owner's name of the credit card must be at least ' . CC_OWNER_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_CC_TEXT_JS_CC_NUMBER', '* The credit card number must be at least ' . CC_NUMBER_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_CC_TEXT_ERROR', 'Credit Card Error:');
define('MODULE_PAYMENT_CC_TEXT_JS_CC_CVV', '* The CVV number must be at least ' . CC_CVV_MIN_LENGTH . ' characters.\n');
define('MODULE_PAYMENT_CC_TEXT_EMAIL_ERROR','Warning - Configuration Error: ');
define('MODULE_PAYMENT_CC_TEXT_EMAIL_WARNING','WARNING: You have enabled the CC payment module but have not properly configured it to send CC information to you by email. As a result, you will not be able to process the CC number for orders placed using this method. Go to Admin->Modules->Payment->CC->Edit and set the preferred email address for sending CC information.' . "\n\n\n\n");
define('MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE', 'Please direct this email to the Accounting department so that it may be filed along with the online order it relates to: ' . "\n\n" . 'Order: %s' . "\n\n" . 'Middle Digits: %s' . "\n\n");
?>

22 Feb 2008, 6:26 PM
#6
kinget avatar

kinget

Zen Follower

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

Post #6 by kinget

I was looking for this solution as well. Thank you for listing this.

Also, Dr. Byte, I was wondering if you have a 1.3.7 cart, and for now you only want to update the paypal module and the authorize.net module -- is that possible? I know you would think to update the entire cart, but if that were going to be a big job and you just wanted to update the pay modules until you had the rest of the cart updated, would that be possible?

Thanks always for your energy.
Kinget

DrByte:

Find this in your payment module, and change the "+10" to "+11":```
for ($i=$today['year']; $i < $today['year']+10; $i++) {

23 Feb 2008, 10:59 AM
#7
rockatansky avatar

rockatansky

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

Post #7 by rockatansky

anybody??

23 Feb 2008, 12:21 PM
#8
rockatansky avatar

rockatansky

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

Post #8 by rockatansky

found it... I had the wrong cc.php

2 Mar 2009, 6:27 PM
#9
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Post #9 by daffy

Thank you for the info... I had a customer tell me the same thing. Easy to fix. Thanks!

Cyndy