Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Haycamp: A demo Chargify app
Branch: master
Failed to load latest commit information.
app first commit
config readme
db first commit
doc first commit
public first commit
script first commit
test first commit
vendor/gems first commit
.gitignore first commit
README.textile Edited README.textile via GitHub
Rakefile first commit


Note – This demo is not up to date with the current chargify gem and API. Please see for the current API documentation.

Haycamp – a Chargify demo

Haycamp is a sample Ruby on Rails app using the Chargify API. You can view the live demo here:


Create Database

cp config/database.yml.sample config/database.yml
rake db:create:all
rake db:migrate

Modify config/initializers/chargify.rb

Add your subdomain and api key credentials to chargify.rb. For use with heroku you can set ENV variables as such

Chargify.configure do |c|
  c.subdomain = ENV['CHARGIFY_SUBDOMAIN']
  c.api_key   = ENV['CHARGIFY_API_KEY']

Add products in Chargify

Add a few products to your chargify test account. Similar setup can be seen in the demo video.



Add tests

Something went wrong with that request. Please try again.