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

@rc-component/async-validator

Validate form asynchronous

99,929,287 16
@molgenis/molgenis-ui-form

Library for generating HTML web forms

6,017 0
@qtxr/vue-form

Powerful Vue forms based on @qtxr/form

3,348
@agtm/nuxt-form

Gerador de Formulário para o nuxt framework

2,560 1
vue-master-form

vue fast create form

1,660

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