Giter Site home page Giter Site logo

stoyangov / crowdfunding-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacklynrose/crowdfunding

0.0 2.0 0.0 224 KB

Instantly add simple crowdfunding to your Ruby on Rails application with PayPal Payments Standard.

License: MIT License

Ruby 39.28% JavaScript 23.35% CSS 13.99% HTML 23.37%

crowdfunding-1's Introduction

Crowdfunding

Instantly add simple crowdfunding to your Ruby on Rails application with PayPal Payments Standard.

This project is still in development. Do not use, especially in a production application.

Configuration

There are several configuation variables. Here is the list and what they do:

  • paypal_email: this will set the PayPal email address to use for making payments to

  • paypal_sandbox: set this to true if you’re wanting to test the functionality with PayPal’s sandbox area. Sign up at developer.paypal.com

  • domain_without_ending_slash: This is the domain name the app is running on. MAKE SURE NOT TO PUT AN ENDING SLASH (this is a bad setup and will be fixed in the future)

To set the configuration, create a the file config/initializers/crowdfunding.rb and set each variable like so: Crowdfunding.variable = value

Testing PayPal

To test PayPal in your local development environment, you’ll need to have tunnelling enabled to ensure PayPal’s IPN can send the notification to your computer. Setup is very simple.

  1. Install the localtunnel gem: gem install localtunnel

  2. On the first run you will need to send localtunnel your public key like so: localtunnel -k ~/.ssh/id_rsa.pub 3000

  3. Configure the engine with the URL localtunnel gives you

  4. Done. Now you can repeat these steps whenever you’re using app in your development environment by just running: localtunnel 3000

crowdfunding-1's People

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.