Credit card form
Card number, expiry, and CVV together. CVV automatically expands to 4 digits for Amex.
Preview
rawValue: -
value: -
rawValue: -
value: -
rawValue: -
value: -
Details
- Use card + expiry + cvv in the same schema.
- American Express cards start with 34 or 37. In that case the card number switches to a 4-6-5 grouped mask and the CVV field automatically expands from 3 to 4 digits (resolveMask).
- The card field has validator: 'luhn'; expiry has validator: 'expiry' built in.
See useViraMask() for the hook API and custom mask for custom masks.
