Sha256: e1d9483910b2bb69d77cf4173a5c65c6cf58dafa00945e57dacf1028a44f77f5

Contents?: true

Size: 630 Bytes

Versions: 13

Compression:

Stored size: 630 Bytes

Contents

# Credit card

#### Rules

The rules are for length and prefixes are dynamic based on the provider
[view list](https://github.com/drexed/lite-validators/blob/master/lib/lite/validators/credit_card_validator.rb).

```ruby
# 1. Length
# 2. Prefix
# 3. Checksum
```

#### Options

Option | Type | Available | Default
--- | --- | --- | ---
provider | symbol | [view here](https://github.com/drexed/lite-validators/blob/master/lib/lite/validators/credit_card_validator.rb) | all

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input0, credit_card: true
  validates :input1, credit_card: { provider: :visa }

end
```

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lite-validators-1.8.0 docs/CREDIT_CARD.md
lite-validators-1.7.2 docs/CREDIT_CARD.md
lite-validators-1.7.1 docs/CREDIT_CARD.md
lite-validators-1.7.0 docs/CREDIT_CARD.md
lite-validators-1.6.0 docs/CREDIT_CARD.md
lite-validators-1.5.0 docs/CREDIT_CARD.md
lite-validators-1.4.0 docs/CREDIT_CARD.md
lite-validators-1.3.2 docs/CREDIT_CARD.md
lite-validators-1.3.1 docs/CREDIT_CARD.md
lite-validators-1.3.0 docs/CREDIT_CARD.md
lite-validators-1.2.0 docs/CREDIT_CARD.md
lite-validators-1.1.2 docs/CREDIT_CARD.md
lite-validators-1.1.1 docs/CREDIT_CARD.md