Buyatabwrapper
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'buyatabwrapper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install buyatabwrapper
Usage
Create a configuration file(config/buyatabwrapper.yml):
development: &default
user_name: your_username
password: your_password
api_token: your_apitoken
host: www.buyatab.com
test:
<<: *default
production:
user_name: your_username
password: your_password
api_token: your_apitoken
host: production_host
Get merchants list
Buyatabwrapper.get_merchants
Purchase card
Buyatabwrapper.purchase_card(merchant_id: '22', amount: '10.00')
Contributing
- Fork it ( https://github.com/[my-github-username]/buyatabwrapper/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request