-
Notifications
You must be signed in to change notification settings - Fork 188
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
base: master
Are you sure you want to change the base?
Conversation
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... |
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? |
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 :) |
@DaKaZ |
The implementation I did was very simple. It merely looked for the price Andrew is the maintainer of the Koudoku repository though, he needs to --Kaz On Sun, Jul 26, 2015 at 7:15 PM, yas4891 [email protected] wrote:
|
+1 to this |
+1 from me too |
I did freemium work on Payola, glad to it's already in PR here. @andrewculver any chance you can hit merge on this 😀? |
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!)