Forum: Ruby on Rails Create a Trial Period then have an initial charge first time.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-01-30 01:03
(Received via mailing list)
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
04e1b6bf268d6110f4ca25201186f726?d=identicon&s=25 Xdmx Xdmx (xdmx)
on 2009-01-30 01:12
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

without collecting info up front i think you can just block the access
after the 30th day and then ask the user to insert the payments data,
get the money and then permit again the user to use the service
536253930b065b5a5e8ff9b204c85001?d=identicon&s=25 Sean McGilvray (Guest)
on 2009-01-30 01:19
(Received via mailing list)
Thank you for your replay

I am looking to allow the 30 trial without collecting payment data.
Then at
the end of the trial charge the first month plus a setup fee.  Then in
the
3rd month, and from that point on, charge only the monthly fee.

Thanks again,

Sean McGilvray & Sarena Byers
Director
Identity Theft Specialist
Pre-Paid Legal Service's, Inc. NYSE:PPD
Phone:  760-486-1019
smcgilvray@prepaidlegal.com
http://www.transferhome.net


On Thu, Jan 29, 2009 at 4:12 PM, Xdmx Xdmx
<rails-mailing-list@andreas-s.net
90e140f8553ecdec1b0d7dbf608a0561?d=identicon&s=25 Pau Cor (phylae)
on 2009-02-06 21:24
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/)
This topic is locked and can not be replied to.