Ruby on Rails with chargify

441 Views Asked by At

I want to integrate chargify to my rails app. I have user object and I want the user to be able to subscribe for one month and update the boolean column on user object. I prefer to use the API not hosted pages. How can I do that?

Is there any example for chargify on ruby on rails for handling subscriptions but with details about mvc for newbies?

2

There are 2 best solutions below

1
On BEST ANSWER

Based on this thread and the Googles it looks like there is not a whole lot out there.

You could try looking at the Rails 2 example here and converting it or use the gem here (gem "chargify", "~> 0.3.0").

I know none of this is aimed at newbies but the info seems to sparse.

0
On

This might get you going. It seems that Chartify itself is written in Rails, and therfore their API is ruby code, which you can use...