Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I handle recurring/subscription billing in a Rails App?

I can't use Chargify, Recurly, Spreedly or any of those apps because I am not based in the US. I am in Jamaica, actually...so many of these companies don't support Jamaica.

But I am trying to roll a custom subscription management solution - but given that this is my first web app - I think it might be too big a task for me to take on.

Are there any gems that can handle this? These are the requirements:

  • All users registered automatically get on a free plan for X days
  • Towards the end of X days, they should be prompted to upgrade
  • If they don't upgrade, at the end of X days their account gets locked/disabled
  • If their account is disabled, they can upgrade and be taken to a checkout page (powered by 2checkout, because that is who I have to use for now).
  • Then once they upgrade, and have selected a plan, the system should automatically increase their allocations (# of clients, # of projects, storage space, etc.)

So I don't need the system to actually handle the processing of the credit cards, etc. It's more the logic of the subscription, restrictions on the models, upgrading and downgrading that I need.

The perfect solution would be a well supported Rails gem that I can include in my Gemfile.

If you don't have that, just send any/all possible solutions and I can take it from there.

Thanks.

like image 284
marcamillion Avatar asked Feb 16 '11 07:02

marcamillion


People also ask

What is the difference between recurring and subscription?

The only difference that you will find in them is the timing and payment options. The recurring payment entirely depends on credit or debit card, while subscription may be developed for other payments. Moreover, in the recurring model, you have to store payment details, but the subscription system if flexible with it.

What is recurring billing and subscription?

Recurring billing is a mechanism that allows a business to receive ongoing payments, but get card information from the customer only once. It is similar to a subscription system in many ways but doesn't necessarily involve the pricing tiers that a subscription system may include.

How do you cancel a recurring subscription?

On your Android device, go to your subscriptions in Google Play. Select the subscription you want to cancel. Tap Cancel subscription. Follow the instructions.


1 Answers

You can look into Saasy. It's a stand alone Rails app (not a plugin) that you host on a subdomain and communicate with it using SSO/REST protocols. Probably won't fit your need as it is, but you may be able to extend it or get a general idea of how it works.

like image 84
htanata Avatar answered Sep 22 '22 05:09

htanata