This is a sample application designed to demonstrate how to use Spreedly to collect money using credit cards and a variety of other payment methods. It uses the httparty gem.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/cache
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
env.rb

README.md

sample-endangered-pets

This is a sample application designed to demonstrate how to use Spreedly to collect money using credit cards and a variety of other payment methods.

You can see it running at http://spreedly-endangered-pets.herokuapp.com.

It uses the httparty gem.

Running

A free Spreedly developer test account is required for this sample application to interact with the Spreedly API.

You need Postgres on your local system, either through Postgres.app, or Homebrew (brew install postgresql).

To run:

$ git clone https://github.com/spreedly/sample-endangered-pets.git
$ cd sample-endangered-pets
$ bundle install
$ rake db:create
$ rake db:migrate
$ bundle exec rails server

Create a test environment in your account, and replace the keys in env.rb with keys you generate there. Consult the docs to learn how to generate API keys, access secrets, and gateway tokens.