Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benweissmann/dev-payments

/dev/payments
https://github.com/benweissmann/dev-payments

Last synced: about 17 hours ago
JSON representation

/dev/payments

Awesome Lists containing this project

README

        

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