Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample Rails application using Stripe to charge a subscription
Ruby JavaScript
branch: master
Failed to load latest commit information.
app Handle card decline errors
config precompile some assets
db Convert layout to haml
doc initial
lib/tasks initial
public Update to latest Rails
script initial
test Sessions, sign in and sign out
.gitignore initial
Gemfile Remove reference to Sass
Gemfile.lock Remove reference to Sass
LICENSE Update README and add LICENSE
Procfile add procfile
README.md Update README and add LICENSE
Rakefile rename; pivot focus
config.ru rename; pivot focus

README.md

Monospace

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.herokuapp.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" on your account

Install the bundler gem if you don't already have it

Run the following commands to setup the project

bundle
bundle exec rake db:setup
bundle exec rails s
Something went wrong with that request. Please try again.