I have a CC update info form. Only the last 4 of the card number is shown and the rest is starred out (******1234).
When someone goes in and just needs to update their expiration date on a card with the same number, we have to require them to update the card as well, since the the starred out number will submit to the API we use, and will return as a bad CC number. API requires that both sets of numbers (card number & exp date) be submitted. The simplest solution seems to be to check on submit if the cardnumber is starred out.
How do I check if the first 12 numbers are starred out (****) with javascript/jQuery?
Also, please feel free to suggest a different way to deal with this if you know a better solution.
I'm familiar enough with jQuery validation, but have never seen something that can do this.
Thanks in advance,
Steven