lib/active_merchant/billing/gateways/bluepay.rb
# ==== Options
#
# * <tt>:rebill</tt> -- A hash containing information about adding a recurring payment to the purchase. Must
#   contain the keys <tt>:rebill_start_date</tt> and <tt>:rebill_expression</tt>. <tt>:rebill_start_date</tt> is a string that tells the gateway when to start the rebill. 
#   Has two valid formats:
#   "YYYY-MM-DD HH:MM:SS" Hours, minutes, and seconds are optional.
#   "XX UNITS" Relative date as explained below. Marked from the time of the
#   transaction (i.e.: 10 DAYS, 1 MONTH, 1 YEAR)
#   rebill_expression is the period of time in-between rebillings.
#   It uses the same "XX UNITS" format as rebill_start_date, explained above.
#   Optional parameters include:
#   rebill_cycles: Number of times to rebill. Don't send or set to nil for infinite rebillings (or
#   until canceled).
#   rebill_amount:   Amount to rebill. Defaults to amount of transaction for rebillings.
# 
#   For example, to charge the customer $49.95 now and then charge $19.95 in 60 days every 3 months for 5 times, the hash would be as follows:
#   :rebill => { 
#     :rebill_start_date => '3 MONTHS',
#     :rebill_expression => '60 DAYS',
#     :rebill_cycles     => '5',
#     :rebill_amount     => '19.95' 
#   }
#   A money object of 4995 cents would be passed into the 'money' parameter.
#   A second example: to charge the customer $0.00 now and then charge $29.95 in 10 days every month for a year, the hash would be as follows:
#   :rebill => { 
#     :rebill_start_date => '10 DAYS',
#     :rebill_expression => '30 DAYS',
#     :rebill_cycles     => '12',
#     :rebill_amount     => '29.95' 
#   }
#   A money object of nil would be passed into the 'money' parameter.
Options
:rebill -- A hash containing information about adding a recurring payment to the purchase. Must
contain the keys :rebill_start_date and :rebill_expression. :rebill_start_date is a string that tells the gateway when to start the rebill.
Has two valid formats:
"YYYY-MM-DD HH:MM:SS" Hours, minutes, and seconds are optional.
"XX UNITS" Relative date as explained below. Marked from the time of the
transaction
rebill_expression is the period of time in-between rebillings.
It uses the same "XX UNITS" format as rebill_start_date, explained above.
Optional parameters include:
rebill_cycles: Number of times to rebill. Don't send or set to nil for infinite rebillings (or
until canceled).
rebill_amount:   Amount to rebill. Defaults to amount of transaction for rebillings.


Options : rebill -- A hash containing information about adding a recurring payment to the purchase . Must contain the keys : rebill_start_date and : rebill_expression . : rebill_start_date is a string that tells the gateway when to start the rebill . Has two valid formats : " YYYY - MM - DD HH : MM : SS " Hours minutes and seconds are optional . " XX UNITS " Relative date as explained below . Marked from the time of the transaction rebill_expression is the period of time in - between rebillings . It uses the same " XX UNITS " format as rebill_start_date explained above . Optional parameters include : rebill_cycles : Number of times to rebill . Don ' t send or set to nil for infinite rebillings ( or until canceled ) . rebill_amount : Amount to rebill . Defaults to amount of transaction for rebillings .
def recurring_payment(money, payment_object, options = {})
        requires!(options[:rebill], :rebill_start_date, :rebill_expression)
        money == nil ? authorize(money, payment_object, options) :
        purchase(money, payment_object, options)
      end
def recurring_payment ( money , payment_object , options = { } ) requires! ( options [ :rebill ] , :rebill_start_date , :rebill_expression ) money == nil ? authorize ( money , payment_object , options ) : purchase ( money , payment_object , options ) end
Options
 <tt>:rebill</tt> -- A hash containing information about adding a recurring payment to the purchase.
Options <tt > : rebill< / tt > -- A hash containing information about adding a recurring payment to the purchase .
money
<not_specific>
payment_object
<not_specific>
options
<not_specific>