0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the Chargify API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0.4.0
>= 0.6.1
>= 0
>= 0
 Project Readme

jsmestad-chargify

Ruby wrapper for the Chargify SAAS and billing API

Important Notice

This fork breaks all compatibility with previous versions (< 0.3.0)

Installation

Production Version

gem install jsmestad-chargify

Bleeding Edge

gem install jsmestad-chargify --pre

Example Usage

Create, cancel, then reactivate subscription

attributes   = { :product_handle => 'basic' ... }
subscription = Chargify::Subscription.create(attributes)
Chargify::Subscription.cancel(subscription[:id], "Canceled due to bad customer service.") 
Chargify::Subscription.reactivate(subscription[:id]) #Made him an offer he couldn't refuse!

Rails Usage

config/initializers/chargify.rb

Chargify::Config.setup do |config|
  config[:subdomain] = 'xxx-test'
  config[:api_key]   = 'InDhcXAAAAAg7juDD'
end

Contributing (requires Bundler >= 0.9.26):

$ git clone git://github.com/jsmestad/chargify.git
$ cd chargify
$ bundle install
$ bundle exec rake

More Info

Wiki: http://wiki.github.com/jsmestad/chargify/

Copyright

See LICENSE for details.