I have a customer with a credit card expiring in 2021
The payment form only goes to 2020.
Is there a way to update this?
Thanks!
Latest News: (loading..)
expiration date only goes to 2020
Started by TheGuy, Sep 21 2011, 16:00
2 replies to this topic
#1
Posted 21 September 2011, 16:00
#2
Posted 21 September 2011, 16:12
It depends on the payment module you are using. I'm using authornizenet_cc_aim.php and mine also ended in 2020.
To change this, open up /catalog/includes/modules/payment/authorizenet_cc_aim.php and find this:
Just change the +10 above to how many more years you want to show. So if you wanted to set it to 2023, change it like so:
Hope this helps!
Peace,
Chris
To change this, open up /catalog/includes/modules/payment/authorizenet_cc_aim.php and find this:
$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)));
}
Just change the +10 above to how many more years you want to show. So if you wanted to set it to 2023, change it like so:
$today = getdate();
for ($i=$today['year']; $i < $today['year']+13; $i++) {
$expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
}
Hope this helps!
Peace,
Chris
#3
Posted 21 September 2011, 17:10
Just what the doctor ordered!
That is all it needed.
Thanks much.
That is all it needed.
Thanks much.














