Skip to content
This repository

implementing stripe features in a rails app

branch: webhooks

This branch is 0 commits ahead and 25 commits behind master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc Initial import. January 27, 2012
Octocat-spinner-32 lib generate cover me rake task February 16, 2012
Octocat-spinner-32 log
Octocat-spinner-32 public Add subscriptions February 08, 2012
Octocat-spinner-32 script Initial import. January 27, 2012
Octocat-spinner-32 spec
Octocat-spinner-32 vendor Initial import. January 27, 2012
Octocat-spinner-32 .gitignore update .gitignore January 28, 2012
Octocat-spinner-32 .rspec add .rspec January 27, 2012
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Initial import. January 27, 2012

Stripe Example

Reference implementation of stripe interface




You will need to add plans to your stripe account!


$ git clone    # clone the repo
$ cd stripe-example
$ bundle install                                      # install all dependencies, we recommend using RVM
$ cp config/database.sample.yml config/database.yml   # use the default database.yml (or customize it)
$ cp config/stripe.sample.yml config/stripe.yml       # add your own keys or you'll be sorry
$ rake db:setup                                       # creates the development database
$ ./script/server                                     # start the server


Tools used:

  • rspec
  • capybara
  • factory girl
rake spec   # this will run all of the RSpec specifications, located in ./spec
  • Specs are organized into Models & Integration specs (/spec/models, /spec/requests)
  • Model Factories are located in /spec/factories.rb


Recommended deployment is done via Heroku. They have an excellent intro at

Environment Variables

Use the heroku config command to check/set environemnt variables on Heroku.

  • STRIPE_APP_ID: the stripe application id
  • STRIPE_SECRET: the stripe secret


Developed by Dev Fu!, LLC.

Something went wrong with that request. Please try again.