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

  1. Fork it ( https://github.com/[my-github-username]/buyatabwrapper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request