Change the year of expiration date to 2 digits
I have authorize.net plugin installed to virtuemart and need to change the expiration date of the year for only 2 digits.
Thank you for your help.
Hello
Authorize accepts those formats:
MMYY,
MM/YY,
MM-YY, MMYYYY,
MM/YYYY,
MM-YYYY
The format sent is:MM-YYYY
It does not work?
Meanwhile the code to be changed is in
Replace
function _getFormattedDate ($month, $year) {
return sprintf ('%02d-%04d', $month, $year);
}
by this
function _getFormattedDate ($month, $year) {
return sprintf ('%02d%02d', $month, $year);
}
Exactly where do the file replacement code?, Remember that I am using the authorize.net plugin for virtuemart in joomla.
http://forum.virtuemart.net/index.php?topic=92944.0
Thanks, PRO, but the article does not answer my question. I have as default expiration date of the credit card, contains 4 digits for the year, I need to be only two digits.
This is for virtuemart plugin for authorize.net
Thanks for any help you can give me.
plugins/vmpayment/authorizenet/authorizenet.php
I'm in that file, the issue is not where I have to make the change to the expiration date of the year is just 2 digits.
Thank you for your help.
what?
What I need to know is where in the file plugins / vmpayment / AuthorizeNet / authorizenet.php, I have to make the change and what the change.
Thank you.
Hello
Search in that file the function _getFormattedDate