Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freemium Enhancements #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Freemium Enhancements #42

wants to merge 6 commits into from

Conversation

DaKaZ
Copy link

@DaKaZ DaKaZ commented Jan 29, 2014

In order to use Koudoku with a freemium model (a free account or upgraded pay accounts) we must change Koudoku to support adding a customer without taking a credit card (most customers dont want to provide a CC for a free account). In order for this to work, you need to have a "Free" plan in your Stripe.com account. For our model, we overrode the default Devise confirmations_controller.rb and extended the do_confirm! method to create the free subscription (and create the customer object) at stripe.

def do_confirm
@confirmable.confirm!
if @confirmable.subscription.nil?
subscription = Subscription.new
subscription.user = @confirmable
subscription.plan = Plan.find_by_name('Free')
subscription.save
end
set_flash_message :notice, :confirmed
sign_in_and_redirect(resource_name, @confirmable)
end

We had to significantly update the views for our application but thanks to rails engine magic those are easy to override (thanks for rake task to set those up as well!)

@colinramsay
Copy link

It would be great if this could be included by default. A flag on the config that allowed completely free plans to skip the payment form entirely would be needed I think...

@DaKaZ
Copy link
Author

DaKaZ commented Mar 12, 2015

I just updated my freemium banch to head. Is there any chance we can get this PR accepted or find out what needs to be done to do so?

@harisaurus
Copy link

Would love an update about freemium plans. Any details on the status of this PR? Willing to assist however I can also - not very experienced but very keen :)

@yas4891
Copy link
Collaborator

yas4891 commented Jul 27, 2015

@DaKaZ
How is this configured?
How do people switch between CC upfront and no CC required?

@DaKaZ
Copy link
Author

DaKaZ commented Jul 27, 2015

The implementation I did was very simple. It merely looked for the price
of the plan and if it was free, it went ahead and created the account in
Stripe WITHOUT the customer's card. If a customer were to switch from a
free plan to a paid plan, then your app would need collect the customer's
card (via stripe) before switching plans. The original code worked well
but candidly the service I built it for has since shut down so I have not
maintained the patch. It would not take much to make it current though.

Andrew is the maintainer of the Koudoku repository though, he needs to
chime in at some point about this PR and the freemium approach.

--Kaz

On Sun, Jul 26, 2015 at 7:15 PM, yas4891 [email protected] wrote:

@DaKaZ https://github.com/DaKaZ
How is this configured?
How do people switch between CC upfront and no CC required?


Reply to this email directly or view it on GitHub
#42 (comment).

@ngelx
Copy link

ngelx commented Sep 23, 2015

+1 to this

@alydersen
Copy link

+1 from me too

@archonic
Copy link

I did freemium work on Payola, glad to it's already in PR here. @andrewculver any chance you can hit merge on this 😀?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants