JQuery library that transforms credit card numbers via aesthetic formatting based on "defined" credit cards.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Create README.md Nov 4, 2015
ccFormat.js Updating default credit card rules for my own purposes. Nov 4, 2015
demo.html Adding demo.html Nov 4, 2015

README.md

jquery-creditcard-formatter

jQuery library that transforms credit card numbers via aesthetic formatting based on "defined" credit cards.

Examples

User inputs credit card number: 371449635398431 (American Express)
Result: 3714 4963539 8431

User inputs credit card number: 4111111111111111 (Visa)
Result: 4111 1111 1111 1111

User inputs credit card number: 2901000000000000 (Unknown)
Result: 2901000000000000

Demo

See a demo of the here.