Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Haycamp: A demo Chargify app

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
README.textile

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 – a Chargify demo

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

Setup

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 http://docs.heroku.com/config-vars.

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

Add products in Chargify

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

Dependencies

To-do

Add tests

Something went wrong with that request. Please try again.