Code Monkey home page Code Monkey logo

lucre's Introduction

111111111111

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 on Stripe so you have nothing to worry about.

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

Installation

  1. Get a Stripe account and find your API keys.
  2. Fork and clone this repo.
  3. Get a Heroku account.
  4. Deploy this app to a new Heroku instance.
  5. Set the environment variables (see below).
  6. 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 Name PAYEE_NAME John Doe
Your Twitter Handle PAYEE_TWITTER jdoe
Shorthand url of your site PAYEE_SITE jdoe.com
Full URL of your site PAYEE_SITE_URL http://jdoe.com
Stripe public key STRIPE_PUBLISHABLE_KEY pk_xyz
Stripe private key STRIPE_SECRET_KEY sk_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.

lucre's People

Contributors

begriffs avatar infogulch avatar kidchild avatar

Watchers

James Cloos avatar 阿弯 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.