Zen Cart Logo
Forums / 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

Views: 4,643

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

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

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.

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

drbyte

Sensei

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

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

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

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

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

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.

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

marcelo63

Zen Follower

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

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

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

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

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

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

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

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

anybody??

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

rockatansky

New Zenner

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

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

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

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

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

Cyndy