Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
/dev/payments
Ruby
Branch: master

Docs

latest commit 635a243603
Ben Weissmann authored
Failed to load latest commit information.
.gitignore Initial commit
LICENSE Initial commit
README.md Docs
dev-payments.rb First commit

README.md

dev-payments

Tested on Ubuntu 13.10. Definitely doesn't work on OS X, which doesn't let you put a FIFO in /dev.

Setup

As root:

# gem install ruby-fifo stripe
# echo "my-stripe-api-secret-key" > /etc/dev-payments
# chmod 700 /etc/dev-payments
# ruby dev-payments.rb

Use

Charge $2.00 to credit card with number 4242424242424242 and expiration date 10/2014, and the note "some payment"

# echo "200 4242424242424242 10/14 some payment" > /dev/payments
Something went wrong with that request. Please try again.