News:

Support the VirtueMart project and become a member

Main Menu

Change the year of expiration date to 2 digits

Started by ornet40, January 15, 2013, 00:10:11 AM

Previous topic - Next topic

ornet40

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.

alatak

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);
}

ornet40

Exactly where do the file replacement code?, Remember that I am using the authorize.net plugin for virtuemart in joomla.


ornet40

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.

PRO

plugins/vmpayment/authorizenet/authorizenet.php



ornet40

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.

PRO


ornet40

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.

alatak

Hello

Search in that file the function _getFormattedDate