When I checkout using the authorize.net aim module, I noticed that if I leave out the credit card number, it doesn't give me a popup window with an error message, it just appears to try to process the credit card, and then it gives me a generic error message:
"Please try again and if problems persist, please try another payment method."
In the authorize.net aim module I was using in an older version of oscmax, it would give a popup message:
Please fix the following errors:
* The credit card number must be at least 10 characters.
So I looked a little deeper, and I see that in the older module, in
includes/modules/payment/authorizenet.php, there was a function javascript_validation, which did some error checking and presumably generated a javascript function to check for these types of errors.
In the newer module, in includes/modules/payment/authorizenet_cc_aim.php, the function javascript_validation just returns false. In fact, it looks like in most or all of the payment module files, the function javascript_validation just returns false.
Is there a reason that this javascript validation was taken out? Can I easily put it back in? I realize that this authorize.net module is a different one, so it would need some tweaking. But it just seems much more useful to give the user a descriptive popup message describing the information that they forgot to enter.
Thanks very much!
Regards,
-Lori-




LinkBack URL
About LinkBacks






Bookmarks