Author Topic: Credit Card Expiration Date  (Read 1134 times)

digitalbehavior

  • Beginner
  • *
  • Posts: 7
  • A beginner
Credit Card Expiration Date
« 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8221
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Credit Card Expiration Date
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

digitalbehavior

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Credit Card Expiration Date
« Reply #2 on: April 29, 2015, 22:13:02 pm »
Works thank you!

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
Re: Credit Card Expiration Date
« Reply #3 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
Code: [Select]
$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

  • Jr. Member
  • **
  • Posts: 69
Re: Credit Card Expiration Date
« Reply #4 on: June 09, 2018, 00:09:16 am »
Hello
Actually the correct answer is this one
in plugins\vmpayment\authorizenet\authorizenet.php

line 229
change the line with
Code: [Select]
$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.