Quantcast
Channel: Hacker News 50
Viewing all articles
Browse latest Browse all 9433

begriffs/lucre · GitHub

$
0
0

Comments:"begriffs/lucre · GitHub"

URL:https://github.com/begriffs/lucre


What's the fuss? Let them pay you!

How come only stores accept debit/credit cards? You should be able to accept them too. Let your friends send you some money, or charge for impromptu consulting. Just deploy this app to Heroku, change some variables and you're in business.

This thing doesn't ask the customer much, just for an email and the payment amount. All the credit card info stays onStripe so you have nothing to worry about.

You can see it in action here. If you like it, why not donate? ;)

Installation

Get a Stripe account and find your API keys. Fork and clone this repo. Get a Heroku account. Deploy this app to a new Heroku instance. Set the environment variables (see below). Profit? Quite possibly.

For each variable below, set its value in your heroku instance by running $ heroku config:add VARIABLE_NAME=value.

Value Variable Name Example
Your NamePAYEE_NAMEJohn Doe
Your Twitter HandlePAYEE_TWITTERjdoe
Shorthand url of your sitePAYEE_SITEjdoe.com
Full URL of your sitePAYEE_SITE_URLhttp://jdoe.com
Stripe public keySTRIPE_PUBLISHABLE_KEYpk_xyz
Stripe private keySTRIPE_SECRET_KEYsk_abc

Contributing

To run this project locally in development, copy the .env.example to.env and fill in the blanks. It contains the environment variables described in the table above. The app does not require setting up a database.

Use the stripe test credentials provided in your account to use fake cards without issuing real charges. There are a variety of test card numbers to simulate any kind of error or card event.

License

Lucre is Copyright © 2013 Joe Nelson. It is free software, and may be redistributed under the terms specified in the LICENSE file.


Viewing all articles
Browse latest Browse all 9433

Trending Articles