News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Credit Card Expiration Date

Started by digitalbehavior, April 29, 2015, 20:18:46 PM

Previous topic - Next topic

digitalbehavior

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

digitalbehavior


alatak

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.

elleclouds

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.