Skip to content

Credit card validations and useful methods

Notifications You must be signed in to change notification settings

MihailDV/bank_card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BankCard / CreditCard

Description

This gem contains validation of card number with Luhn method, card brand detection (Visa, MasterCard, etc.)

Examples

class CreditCard < ActiveRecord::Base
  include BankCard::Validations

  validates :number, :luhn => true
  validates_expiration_of :date
end

You can get more info from specs

Licence

released under the MIT license.

About

Credit card validations and useful methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%