Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby wrapper for the chargify.com SAAS and billing API
Ruby JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
README.markdown
Rakefile
VERSION
changelog.md
jsmestad-chargify.gemspec

README.markdown

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.

Something went wrong with that request. Please try again.