GithubHelp home page GithubHelp logo

dreamable / payola Goto Github PK

View Code? Open in Web Editor NEW

This project forked from payolapayments/payola

2.0 1.0 0.0 667 KB

Drop-in Rails engine for accepting payments with Stripe

Home Page: http://www.payola.io

License: Other

Ruby 75.07% JavaScript 12.11% CSS 0.70% HTML 12.11%

payola's Introduction

Payola

Gem Version CircleCI Code Climate Test Coverage Dependency Status

Payments with Stripe for your Rails application.

What is my changes?

This is a fork of https://github.com/payolapayments/payola, which is not maintained by owners. It has following changes:

  • Use the latest code, to fix the "undefined method `event_retriever=' for StripeEvent:Module" error.
  • Make PDF receipt works
    • add the "docverter" dependency to gemspec which is to convert html to PDF
    • Removing missing file ApplicationHelper from receipt_mailer.rb
    • Remove @sale.guid from Receipt
  • Update the configuration template: initializer.rb
    • Add more commonly used configuration & examples
    • Add template for endpoint handling.
    • Add PDF receipt configuration by default.
  • Combine & Clean DB migration files
  • Make checkout form support custom_fields, similar with checkout button.

What does this do?

Payola is a drop-in Rails engine that lets you sell one or more products by just including a module in your models. It includes:

  • An easy to embed, easy to customize, async Stripe Checkout button
  • Asynchronous payments, usable with any background processing system
  • Full webhook integration
  • Easy extension hooks for adding your own functionality
  • Customizable emails

To see Payola in action, check out the site for Mastering Modern Payments: Using Stripe with Rails. Read the book to find out the whys behind Payola's design.

Installation

Add Payola to your Gemfile:

gem 'payola-payments'
gem 'payola-payments', :git => 'https://github.com/dreamable/payola.git' # to use this branch

Run the installer:

$ rails g payola:install
$ rake db:migrate

(Note: do not run rake payola:install:migrations. Payola's migrations live inside the gem and do not get copied into your application.)

Optionally, tell Stripe about your application. Add this as a webhook in your Stripe dashboard:

https://your.website.example.com/payola/events

Additional Setup Resources

One-time payments

Configuration options

Subscriptions

TODO

  • Multiple subscriptions per customer
  • Affiliate tracking
  • Easy metered billing

License

Please see the LICENSE file for licensing details.

Changelog

Please see CHANGELOG.md.

Contributing

  1. Fork the project
  2. Make your changes, including tests that exercise the code
  3. Summarize your changes in CHANGELOG.md
  4. Make a pull request

Version announcements happen on the Payola Payments Google group and @payolapayments.

Author

Pete Keen, @zrail, https://www.petekeen.net

payola's People

Contributors

peterkeen avatar jagthedrummer avatar eliotsykes avatar trevorhinesley avatar peburrows avatar dakotalightning avatar jharbert avatar davekiss avatar tongboy avatar jordigg avatar cdwilhelm avatar frankh avatar ngelx avatar devknoll avatar fastdivision avatar lazyatom avatar lemuelbarango avatar dreamable avatar oboxodo avatar nerboda avatar manuquentin avatar archonic avatar fluke avatar plopezd avatar rschooley avatar rossta avatar spdawson avatar tristang avatar theabrad avatar excid3 avatar

Stargazers

Manuel Ortega avatar Weston Ganger avatar

Watchers

 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.