Sean McGilvray wrote:
> I am looking to see of someone has created a setup that will allow for
> a trial period of 30 days without collecting payment info up front.
> 
> On the 30th day charge one fee (i.e. 4.95 + 9.95 setup fee)
> 
> Then charge 4.95 a month after that.
> 
> If you know how to do this I would be forever thankful.
> 
> Thank You

account = Account.new
sleep 30.days.to_i
account.charge_setup_fee!
loop do
  account.charge_monthly_fee!
  sleep 30.days.to_i
end


Seriously, look at ActiveMerchant and Service Merchant 
(http://servicemerchant.org/) and this RailsKit 
(http://railskits.com/recurring_billing/)
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to