# Create a Trial Period then have an initial charge first time

**URL:** <https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983>\
**Category:** Rails\
**Created:** [January 30, 2009, 1:03am UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983 "2009-01-30T01:03:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [January 30, 2009, 1:03am UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983/1 "2009-01-30T01:03:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [January 30, 2009, 1:12am UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983/2 "2009-01-30T01:12:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [January 30, 2009, 1:19am UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983/3 "2009-01-30T01:19:06Z")

</div>

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](http://www.transferhome.net)

On Thu, Jan 29, 2009 at 4:12 PM, Xdmx X.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [February 6, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983/4 "2009-02-06T21:24:29Z")

</div>

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/](http://servicemerchant.org/)) and this RailsKit  
([http://railskits.com/recurring\_billing/](http://railskits.com/recurring_billing/))
