omarshammas / jquery.formance

A jQuery library for formatting and validating form fields, based on Stripe's jQuery.payment library.
omarshammas.github.io/formancejs
Other
630 stars 105 forks source link

Set CVC to restrict input to 3 characters when credit card type is not AMEX #10

Open prpetten opened 10 years ago

prpetten commented 10 years ago

Rather than allowing input of 4 characters in field, restrict input to 3 characters if the credit card type set is not AMEX.