Skip to content

lab2023/bin_checker

Repository files navigation

BinChecker

Bin checker identifies Turkish banks with bin numbers, It bases on berkayunal's bin list.

Requirements

Before generating your application, you will need:

  • Ruby ~> 2.0
  • Rails ~> 3.0 or Rails ~> 4.0

Installation

Add this line to your application's Gemfile:

gem 'bin_checker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bin_checker

After installation you should run

$ rails g bin_checker:migration
$ rake db:migrate
$ rake bin_numbers:insert

for seeding datas.

Usage

When you want to get bank infos just run like

card = BinNumber.find_by bin_number: '454894'

card.bank_name
=> "T.C. ZİRAAT BANKASI A.Ş."

card.card_type
=> "VISA"

card.sub_type
=> "CLASSIC"

card.virtual
=> false

card.prepaid
=> false

Bugs and Feedback

If you discover any bugs or want to drop a line, feel free to create an issue on GitHub.

http://github.com/lab2023/bin_checker

Contributing

BinChecker uses TomDoc, rDoc and SemVer, and takes it seriously.

Once you've made your great commits:

  1. Fork Template
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

Credits

lab2023

License

Copyright 2014 lab2023 - information technologies

About

Bin checker is checks Turkish Banks bin numbers

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages