vue-cc-input
1,025
| Install | |
|---|---|
npm install vue-cc-input@0.2.0 |
|
| Latest Version: | 0.2.0 |
| Vue: | 2 |
| Last Updated: | Jan 4, 2023 |
| Links: | GitHub · npm |
Maintainer: cecitorres
A simple and powerful input for your credit card form
Install
npm install vue-cc-input
How to use it
Just pass a variable for receive the credit card info (trigger only when all validations passed)
<v-credit-card
v-model="form"
:banksPermited="[
'Visa',
'MasterCard',
'Amex'
]"
/>
Validations
Include some cool validations like:
- Number length (16 or 15 digits)
- Valid credit card number (Luhn algorithm)
- Date valid (greater or equal that today)
- CVV length
Props
- banksPermited: An array with names of brands allowed (supports Visa, MasterCard, and Amex)
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.0 | ^2.6.10 | ||
| 0.1.22 | ^2.6.10 | ||
| 0.1.21 | ^2.6.10 | ||
| 0.1.20 | ^2.6.10 | ||
| 0.1.19 | ^2.6.10 | ||
| 0.1.18 | ^2.6.10 | ||
| 0.1.17 | ^2.6.10 | ||
| 0.1.16 | ^2.6.10 | ||
| 0.1.15 | ^2.6.10 | ||
| 0.1.14 | ^2.6.10 | ||
| 0.1.13 | ^2.6.10 | ||
| 0.1.11 | ^2.6.10 | ||
| 0.1.10 | ^2.6.10 | ||
| 0.1.9 | ^2.6.10 | ||
| 0.1.8 | ^2.6.10 | ||
| 0.1.7 | ^2.6.10 | ||
| 0.1.6 | ^2.6.10 | ||
| 0.1.5 | ^2.6.10 | ||
| 0.1.4 | ^2.6.10 | ||
| 0.1.3 | ^2.6.10 |