payform does two separate things and it specifically targets forms where credit card numbers need to be inputted.
First off it can properly format credit card numbers based on the credit card provider, adding spaces between the bulk numbers and making it look just like on your credit card.
Example: A Visa credit card number like 4111111111111111 will be displayed inside a "payform" input field like 4111 1111 1111 1111, exactly how it's printed on your card.
Secondly, when submitting the form, the library will also check to see if the number's checksum matches the credit card provider's algorithm, avoiding situations when users enter a wrong number by incorrectly entering characters or just forgetting about one digit.
Success and errors messages are supported, which can be shown when the form is submitted, helping users detect what and where needs to be fixed.
Validation to card expiration dates and CVC numbers is also suppored, along with the ability to extend the library with custom credit card providers.
payform works without jQuery, but jQuery and Zepto.js versions of the library are included, all along with some sample forms.
Supported credit card providers:
Visa
Visa Electron
Mastercard
Maestro
UnionPay
Dankort
Forbrugsforeningen
American Express
Diners Club
Discover
JCB
What is new in this release:
- Add jQuery Plugin shim
- Add numeric input formatter `numericInput`
- Move build process to makefile
What is new in version 1.1.0:
- Add jQuery Plugin shim
- Add numeric input formatter `numericInput`
- Move build process to makefile
Requirements:
- JavaScript enabled on client side
- jQuery 1.5 or higher
Comments not found