Event listening
Both, number and CVV support listening for the following events:
inputfocusandblurmouseoverandmouseoutenterandesctabandshift-tab
Register the event handlers in the init or initCvvRefresh methods:
For all events, the callback function will receive a data object:
Possible cardType values are: amex, dinacard, diners, discover, elo, jcb, mada, maestro, mastercard, meeza, uatp, unionpay, visa_electron, and visa.
Forward compatibility
Please note that the enumerated list provided above is subject to change or expansion over time. As such, be ready to accommodate and appropriately handle unfamiliar card brands.