Skip to content
Accepting payments with Recurly.js and Rails - a sample app
Ruby CSS JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
test
vendor/assets
.gitignore
.rspec
.rvmrc
.travis.yml Add a first Travis CI configuration Oct 20, 2013
Gemfile
Gemfile.lock
Guardfile
LICENSE
README.md Mention Recurly.js v3 May 23, 2014
Rakefile
config.ru

README.md

This is a work-in-progress of a sample Rails app supporting recurring payments with Recurly.js.

Follow me on Twitter for updates: @thibaut_barrere

Important note

The current code relies on Recurly.js v2. It is still usable and will be for some time I believe, but you will prefer to adapt it to Recurly.js v3 directly to save some time.

Preliminary reading

Code status

The code is not meant to be high-quality, nice looking etc but rather, a quick getting started guide with minimal dependencies and scenarios.

Build Status Code Climate

  • As a user, I can sign-up for a monthly subscription of your great product
  • As a user, I can also close my account which will result in immediate termination
  • As a user, I want to be able to update my billing information
  • As a user, I want to list my past invoices

Setup

  • create a Recurly account (free as long as you do not enable a production payment gateway)
  • create a "freelancer" plan (do not configure a trial period - the app handles it to be able to show the correct price at sign-up)
  • you'll want to setup VAT etc if applicable in your settings
  • enable API access and JS API access
  • create config/settings.yml based on the sample
  • bundle install
  • rake db:schema:load
  • bin/rails s
Something went wrong with that request. Please try again.