skeuocard
skeuocard copied to clipboard
Validation for AMEX cards
When testing an AMEX card I enter some invalid data and immediately get the red borders meaning there is something wrong with the input.
However if I enter valid data or the test card number shown in the Skeuocard page, the UI tells everything is ok, green borders and everything, but the isValid() function tells the contrary.
I got this error with the test card number on the page, and my own card.
+1
You guys are absolutely correct; great catch. In the isValid
function I'm checking to ensure that neither front nor back faces have the invalid
class applied -- but in the case of the front-side CCV of the AMEX, the invalid class is being applied to the back face extraneously.
I'll get on fixing this ASAP. Thanks a lot!
is a fix for tihs issue to be fixed soon? or is it out there already?
My quick fix:
Skeuocard.prototype.isValid = function() {
return !this.el.front.hasClass('invalid')
&& (!this.el.back.hasClass('invalid') || !this._inputViewsByFace['back'].length);
};
@kenkeiter is there are ETA for this bug?
+1