lib/active_merchant/billing/gateways/bluepay.rb
# Update a recurring payment's details.
#
# This transaction updates an existing recurring billing
#
# ==== Parameters
#
# * <tt>rebill_id</tt> -- A string containing the rebill_id of the recurring billing that is already active (REQUIRED)
# * <tt>options</tt> -- A hash of parameters.
#
# ==== Options
# 
# * <tt>:rebill</tt> -- A hash containing information about adding a recurring payment to the purchase. The 5 optional hash parameters are below.
#
# * <tt>:rebill_amount</tt> -- A string containing the new rebilling amount.
# * <tt>:rebill_next_date</tt> -- A string containing the new rebilling next date.
# * <tt>:rebill_expression</tt> -- A string containing the new rebilling expression.
# * <tt>:rebill_cycles</tt> -- A string containing the new rebilling cycles.
# * <tt>:rebill_next_amount</tt> -- A string containing the next rebilling amount to charge the customer. This ONLY affects the next scheduled charge; all other rebillings will continue at the regular (rebill_amount) amount.
# Take a look above at the recurring_payment method for similar examples on how to use.
Update a recurring payment's details.
This transaction updates an existing recurring billing

Parameters

rebill_id -- A string containing the rebill_id of the recurring billing that is already active (REQUIRED)
options -- A hash of parameters.

Options

:rebill -- A hash containing information about adding a recurring payment to the purchase. The 5 optional hash parameters are below.

:rebill_amount -- A string containing the new rebilling amount.
:rebill_next_date -- A string containing the new rebilling next date.
:rebill_expression -- A string containing the new rebilling expression.
:rebill_cycles -- A string containing the new rebilling cycles.
:rebill_next_amount -- A string containing the next rebilling amount to charge the customer. This ONLY affects the next scheduled charge; all other rebillings will continue at the regular (rebill_amount) amount.
Take a look above at the recurring_payment method for similar examples on how to use.
Update a recurring payment ' s details . This transaction updates an existing recurring billing Parameters rebill_id -- A string containing the rebill_id of the recurring billing that is already active ( REQUIRED ) options -- A hash of parameters . Options : rebill -- A hash containing information about adding a recurring payment to the purchase . The 5 optional hash parameters are below . : rebill_amount -- A string containing the new rebilling amount . : rebill_next_date -- A string containing the new rebilling next date . : rebill_expression -- A string containing the new rebilling expression . : rebill_cycles -- A string containing the new rebilling cycles . : rebill_next_amount -- A string containing the next rebilling amount to charge the customer . This ONLY affects the next scheduled charge ; all other rebillings will continue at the regular ( rebill_amount ) amount . Take a look above at the recurring_payment method for similar examples on how to use .
def update_rebilling(rebill_id, options = {})
	post = {}
	requires!(rebill_id)
	requires!(options, :rebill)
	$options[:view_rebilling] = '1'
 	post[:ACCOUNT_ID]         = $options[:account_id]	
	post[:REBILL_ID]          = rebill_id
	post[:TRANS_TYPE]         = 'SET'
	post[:TAMPER_PROOF_SEAL]  = calc_rebill_tps(post)
        post[:REB_AMOUNT]         = options[:rebill][:rebill_amount]
        post[:NEXT_DATE]          = options[:rebill][:rebill_next_date]
        post[:REB_EXPR]           = options[:rebill][:rebill_expression]
        post[:REB_CYCLES]     	  = options[:rebill][:rebill_cycles]
	post[:NEXT_AMOUNT]        = options[:rebill][:rebill_next_amount]
        post[:REBILL]             = '1'
	commit('nil', post)	
      end
def update_rebilling ( rebill_id , options = { } ) post = { } requires! ( rebill_id ) requires! ( options , :rebill ) $options [ :view_rebilling ] = '1' post [ :ACCOUNT_ID ] = $options [ :account_id ] post [ :REBILL_ID ] = rebill_id post [ :TRANS_TYPE ] = 'SET' post [ :TAMPER_PROOF_SEAL ] = calc_rebill_tps ( post ) post [ :REB_AMOUNT ] = options [ :rebill ] [ :rebill_amount ] post [ :NEXT_DATE ] = options [ :rebill ] [ :rebill_next_date ] post [ :REB_EXPR ] = options [ :rebill ] [ :rebill_expression ] post [ :REB_CYCLES ] = options [ :rebill ] [ :rebill_cycles ] post [ :NEXT_AMOUNT ] = options [ :rebill ] [ :rebill_next_amount ] post [ :REBILL ] = '1' commit ( 'nil' , post ) end
Update a recurring payment's details.
Update a recurring payment ' s details .
rebill_id
<not_specific>
options
<not_specific>