Awesome
BinChecker
Bin checker identifies Turkish banks with bin numbers, It bases on berkayunal's bin list.
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.get_bank('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:
- 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!
Credits
- 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.
License
Copyright 2014 lab2023 - information technologies