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.
Sean McGilvray (Guest)
on 2009-01-30 02: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
Xdmx X. (Guest)
on 2009-01-30 02: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
Sean McGilvray (Guest)
on 2009-01-30 02: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
removed_email_address@domain.invalid
http://www.transferhome.net


On Thu, Jan 29, 2009 at 4:12 PM, Xdmx X.
<removed_email_address@domain.invalid
Pau C. (Guest)
on 2009-02-06 22: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.