According to my customer, the expiry date for credit card entry only goes to 2022.
Where must I go to add more expiry years?
Printable View
According to my customer, the expiry date for credit card entry only goes to 2022.
Where must I go to add more expiry years?
That'll be in your payment module.
So ... which payment module? and which ZC version?
Oh right. That must be EWAY and zencart 1.3.9h
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)));
}
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;
}
the php file is eway.php and the codng for that bit is:
...so it looks like that is where I have come unstuck.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)));
}
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.