Using Active Merchant for recurring billing →
Note that arguments passed to the recurring method vary by payment gateway. Refer to the active merchant docs for specifics: http://activemerchant.rubyforge.org/
And if you’re using Braintree, this might be helpful: http://mandarinsoda.com/2008/06/02/recurring-billing-with-braintree-and-activemerchant/