Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
implementing stripe features in a rails app
branch: master
Failed to load latest commit information.
app T: Use validation_matcher for purchase model tests
config test for environment variables instead of app environment
db T: Items and Purchases
doc Initial import.
lib generate cover me rake task
log Initial import.
public Add subscriptions
script Initial import.
vendor Initial import.
.gitignore update .gitignore
.rvmrc basics
Gemfile remove pry-doc due to segfaults on ruby 1.9.3-p125
Gemfile.lock update vcr & webmock Add documentation URL to README

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.