Bin checker identifies Turkish banks with bin numbers, It bases on berkayunal's bin list.
Before generating your application, you will need:
- Ruby ~> 2.0
- Rails ~> 3.0 or Rails ~> 4.0
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.
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
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
BinChecker uses TomDoc, rDoc and SemVer, and takes it seriously.
Once you've made your great commits:
- Fork Template
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request from your branch
- That's it!
- BinChecker is maintained and funded by lab2023 - information technologies
- Thank you to all the contributors!
- The names and logos for lab2023 are trademarks of lab2023, inc.
Copyright 2014 lab2023 - information technologies