GithubHelp home page GithubHelp logo

koudoku_coupons's Introduction

KoudokuCoupons

KoudokuCoupons adds support for Stripe coupons to Koudoku.

Installation

For KoudokuCoupons to work properly you need to add the following lines to your Gemfile:

gem 'koudoku', git: 'https://github.com/andrewculver/koudoku.git' # handles stripe subscriptions
gem 'koudoku_coupons'

Next run bundle install. After that you need to add the migrations to your application:

rails g koudoku_coupons:install
rake db:migrate

This will copy the migration into your application and run it. Additionally it will mount KoudokuCoupons at /promotions

If you are using Devise for authentication, you need to add this line to your ApplicationController to allow non-logged-in users to use coupons:

skip_filter :authenticate_user!, :if => :koudoku_coupons_controller?

Setting Up New Coupons

First you need to create a new coupon in the Stripe dashboard. To add a new promotion visit your application at /promotions/promotions/new and enter the following data:

koudoku_coupons's People

Contributors

yas4891 avatar

Stargazers

 avatar Matthias Orgler avatar

Watchers

James Cloos avatar  avatar

Forkers

klinskyc jackyvo

koudoku_coupons's Issues

Rails versions

Hi,

Seems like this gem only supports version 3 of rails. Any plans to update it?


Resolving dependencies...
Bundler could not find compatible versions for gem "rails":
In Gemfile:
koudoku_coupons (>= 0) ruby depends on
rails (~> 3.2.19) ruby

rails (4.1.1)

Thanks for sharing!

Andreas

Free subscription

Is it possible to use this gem for a coupon which gives you completely free subscription?

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.