You can optionally specify a scope property that stores the card type as cc-type. Looks like you're typing a number!Įnforcing a specific card type chosen with a : The eagerly matched type will be available as $ccEagerType on the model controller.ĭisplaying the card type from a user input: Add the cc-eager-type attribute to your element to enable eager type detection. a 4 can immediately be detected as a Visa). You can also enable eager card type detection to match against card type with only leading digits (e.g. If no type is provided, ccNumberType will always be valid for any card that passes Luhn and matches any card type. A special validity key- ccNumberType-indicates whether the card matched the specified type. If its value is defined on the scope, the card number will be checked against the type(s) in addition to the Luhh algorithm. The cc-type property is optional and may be a single card type or an array of types. The input pattern used to trigger the dialer keypad on mobile does not allow spaces, causing browsers that implement pattern validation to display an error tooltip. If you're using cc-format, you'll want to apply the novalidate attribute to your to disable native browser validation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |