Note – This demo is not up to date with the current chargify gem and API. Please see http://docs.chargify.com for the current API documentation.
Haycamp is a sample Ruby on Rails app using the Chargify API. You can view the live demo here: http://haycamp.heroku.com
cp config/database.yml.sample config/database.yml rake db:create:all rake db:migrate
Add your subdomain and api key credentials to chargify.rb. For use with heroku you can set ENV variables as such http://docs.heroku.com/config-vars.
Chargify.configure do |c| c.subdomain = ENV['CHARGIFY_SUBDOMAIN'] c.api_key = ENV['CHARGIFY_API_KEY'] end
Add a few products to your chargify test account. Similar setup can be seen in the demo video.
- Chargify API Wrapper: An Active Resource wrapper for the API
- Clearance: For authentication
Add tests