jquery validation type error on the credit card field
On front end contribution forms with Credit Card Processing enabled, the jQuery Validation Plugin is choking on the credit card field and throwing the following error in the console:
TypeError: a.validator.methods[d] is undefined. Exception occurred when checking element credit_card_number, check the 'creditcard' method. jquery.validate.min.js:4:11231
I think this broke when the jQuery Validation Plugin was updated with this commit in CiviCRM 5.25.
- go to a front end contribution form with credit card processing set up
- Enter a 1 into the credit card number field
an error is thrown in the console.
NO validation error is thrown
no error should appear in the console
an "Invalid credit card number" message should appear next to the field
I was able to recreate this on http://wpmaster.demo.civicrm.org/ (CiviCRM v5.27) and (CiviCRM v5.25)