This is a Ruby wrapper for Pagantis API.
First, you've to install the gem
gem install pagantis-ruby
and require it
require 'pagantis-ruby'
or add it to your Gem file
gem 'pagantis-ruby'
Then you have to set your API key:
Pagantis::Base.token = 'your-api-token'
Getting all existing plans in your account:
plans = Pagantis::Plan.all
Getting plan details
plan = Pagantis::Plan.find('pla_xxxxxxxxxx')
Copyright (c) 2014 Telecoming Payment Solutions S.A.. See LICENSE for details.