J.Sahu Posted December 9, 2013 Share Posted December 9, 2013 (edited) Hello, I'm on PS 1.5. I am using authorize.net payment module. Every time I process a card it says "Credit card expiration date is invalid" (In every mode test and live, test credit card and original credit card). When I look at the code there is some value for the years which are like 0,1,2,3.... when I changed the values and tested it worked. I removed a the module and installed again by downloading from the add-on store. Now the version is 1.4 and it says to update but when I update In gets updated to the same version. I switched to developer mode, tried to update and got this error. Notice: Undefined variable: params in /mywebsite.com/html/controllers/admin/AdminModulesController.php on line 771 Warning: Cannot modify header information - headers already sent by (output started at /mywebsite.com/html/controllers/admin/AdminModulesController.php:771) in /mywebsite.com/html/classes/Tools.php on line 141 Please someone give some suggestion on this. Edited December 10, 2013 by J.Sahu (see edit history) Link to comment Share on other sites More sharing options...
J.Sahu Posted December 10, 2013 Author Share Posted December 10, 2013 I solved my problem. If anyone getting the same problem can try this. What I did : # Uninstalled the old module and completely deleted that. # After deleting, searched in the payment section and found another module with name authorize.net (sim). # Installed that module # Now I got the latest version of the authorize.net module but that also didn't work # Changed the value in authorizeaim.tpl <option value="{$smarty.section.date_y.index}">{'Y'|date + $smarty.section.date_y.index}</option>{/section} to <option value="{'y'|date + $smarty.section.date_y.index}">{'Y'|date + $smarty.section.date_y.index}</option>{/section} I saw that when I was trying to make a transaction then the year value was coming like 0,1,2.... but it should be like 13,14,15.... I don't know whether it's my server not taking the value but after changing the value it worked. 1 Link to comment Share on other sites More sharing options...
osdznr14mm Posted December 14, 2013 Share Posted December 14, 2013 J. Sahu, thank you SO much for figuring this out. I got the same error over & over, after it had been working fine for a few weeks, so strange.... I was going crazy, wasting hours until I applied your code fix. It worked! Thanks a million. Link to comment Share on other sites More sharing options...
J.Sahu Posted December 17, 2013 Author Share Posted December 17, 2013 Welcome. Nice to hear that worked for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now