Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Haycamp: A demo Chargify app
Tree: 47a4faa085

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
public
script
test
vendor/gems
.gitignore
README.textile
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.