GoCardless Pro Ruby Example

by gocardless

GitHub Readme.md

GoCardless Pro Ruby Example

Deploy

This is a simple Sinatra application that uses the GoCardless Pro API to collect recurring payments for subscriptions using our redirect flow. It also acts as an example usage of our ruby client library

You can see the app running at https://gocardless-pro-ruby-example.herokuapp.com.

Running the app locally

First, register a sandbox account here, and grab an access token that has full_access permissions.

git clone https://github.com/gocardless/flow-demo-app
cd flow-demo-app
bundle install

export GC_ACCESS_TOKEN=...
bundle exec shotgun app.rb

Then open http://localhost:9393/