8000 GitHub - scalone/cardbins: This gem will compare the card's bin range and return the card's brand name.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This gem will compare the card's bin range and return the card's brand name.

Notifications You must be signed in to change notification settings

scalone/cardbins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardbins

If you have a payment app and you need to check the card's brand name, this gem may can help you to find it. The card's bins data is stored into a xml file and it will be used to compare the card's bins range informed and returns the correct brand name.

Installation

Add this line to your application's Gemfile:

gem 'cardbins'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cardbins

Usage

2.4.1 :001 > require 'Cardbins'
 => true
2.4.1 :002 > brand = Cardbins.bin("636297")
 => "ELO"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gustavofernandesn/cardbins.

About

This gem will compare the card's bin range and return the card's brand name.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.7%
  • Shell 0.3%
0