VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: digitalbehavior on April 29, 2015, 20:18:46 PM

Title: Credit Card Expiration Date
Post by: digitalbehavior on April 29, 2015, 20:18:46 PM
Hello,

I have latest Joomla 3 VM 3.0.6 Using Authorize.net payment processor.

I have a customer who has a credit card that expires 2023 and there is no option to choose. I believe it only goes to 2022. Is there a way to change this? I haven't upgraded to VM 3.0.8 yet if that has been changed in that version?

Thank you.
Title: Re: Credit Card Expiration Date
Post by: GJC Web Design on April 29, 2015, 21:44:53 PM
in plugins\vmpayment\authorizenet\authorizenet.php

line 229

$html .= shopfunctions::listYears('cc_expire_year_' . $this->_currentMethod->virtuemart_paymentmethod_id, $this->_cc_expire_year, NULL, 2022, " onchange=\"javascript:changeDate(" . $this->_currentMethod->virtuemart_paymentmethod_id . ", this);\" ");

change to what u need the last year as

same in 3.0.8
Title: Re: Credit Card Expiration Date
Post by: digitalbehavior on April 29, 2015, 22:13:02 PM
Works thank you!
Title: Re: Credit Card Expiration Date
Post by: alatak on May 18, 2015, 12:16:16 PM
Hello
Actually the correct answer is this one
in plugins\vmpayment\authorizenet\authorizenet.php

line 229
change the line with
$html .= shopfunctions::listYears('cc_expire_year_' . $this->_currentMethod->virtuemart_paymentmethod_id, $this->_cc_expire_year, NULL, null, " onchange=\"javascript:changeDate(" . $this->_currentMethod->virtuemart_paymentmethod_id . ", this);\" ");

it willl automatically set the end date to this year +11
i am fixing the code, so you can update VM with n problem.
Title: Re: Credit Card Expiration Date
Post by: elleclouds on June 09, 2018, 00:09:16 AM
Quote from: alatak on May 18, 2015, 12:16:16 PM
Hello
Actually the correct answer is this one
in plugins\vmpayment\authorizenet\authorizenet.php

line 229
change the line with
$html .= shopfunctions::listYears('cc_expire_year_' . $this->_currentMethod->virtuemart_paymentmethod_id, $this->_cc_expire_year, NULL, null, " onchange=\"javascript:changeDate(" . $this->_currentMethod->virtuemart_paymentmethod_id . ", this);\" ");

it willl automatically set the end date to this year +11
i am fixing the code, so you can update VM with n problem.

This method would not work for me.  I'm on VM 3.2.14.  The expiration date only goes to 2022.