Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
/dev/payments
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
README.md
dev-payments.rb

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.