Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample Rails application using Stripe to charge a subscription

branch: master
Octocat-spinner-32 app Handle card decline errors February 11, 2013
Octocat-spinner-32 config precompile some assets February 11, 2013
Octocat-spinner-32 db Convert layout to haml December 13, 2011
Octocat-spinner-32 doc initial August 25, 2011
Octocat-spinner-32 lib initial August 25, 2011
Octocat-spinner-32 public Update to latest Rails February 11, 2013
Octocat-spinner-32 script initial August 25, 2011
Octocat-spinner-32 test Sessions, sign in and sign out August 25, 2011
Octocat-spinner-32 .gitignore initial August 25, 2011
Octocat-spinner-32 Gemfile Remove reference to Sass February 11, 2013
Octocat-spinner-32 Gemfile.lock Remove reference to Sass February 11, 2013
Octocat-spinner-32 Procfile add procfile February 11, 2013
Octocat-spinner-32 README Add note about creating a plan January 16, 2012
Octocat-spinner-32 Rakefile rename; pivot focus August 28, 2011
Octocat-spinner-32 config.ru rename; pivot focus August 28, 2011
README
Monospace is a social network for developers. It's our sample Rails application, showing how to use Stripe to charge subscribers.

Monospace uses the Stripe Javascript bindings to validate a credit card, and the Stripe Ruby bindings to create a customer and add the credit card to that customer. Customers can also update their credit card.

You can play with a live version at https://monospace-rails.heroku.com/

Installation steps:
* You will need a publishable token and a secret token. Add them both to config/initializers/stripe.rb.
* Create a plan with the ID "premium" here: https://manage.stripe.com/#test/plans
* Install the bundler gem if you don't already have it
* Run the command "bundle" from the root of this project
* Run the command "bundle exec rake db:setup" from the root of this project
* Run the command "bundle exec rails s"
Something went wrong with that request. Please try again.