lib/active_merchant/billing/gateways/bluepay.rb
# Performs an authorization, which reserves the funds on the customer's credit card. This does not actually take funds from the customer
# This is referred to an AUTH transaction in BluePay
#
# ==== Parameters
#
# * <tt>money</tt> -- The amount to be authorized as an Integer value in cents.
# * <tt>payment_object</tt> -- This can either be one of three things:
# * A CreditCard object,
# * A Check object,
# * or a token. The token is called the Master ID. This is a unique transaction ID returned from a previous transaction. This token associates all the stored information for a previous transaction.
# * <tt>options</tt> -- A hash of optional parameters.
Performs an authorization, which reserves the funds on the customer's credit card. This does not actually take funds from the customer
This is referred to an AUTH transaction in BluePay

Parameters

money -- The amount to be authorized as an Integer value in cents.
payment_object -- This can either be one of three things:
A CreditCard object,
A Check object,
or a token. The token is called the Master ID. This is a unique transaction ID returned from a previous transaction. This token associates all the stored information for a previous transaction.
options -- A hash of optional parameters.
Performs an authorization which reserves the funds on the customer ' s credit card . This does not actually take funds from the customer This is referred to an AUTH transaction in BluePay Parameters money -- The amount to be authorized as an Integer value in cents . payment_object -- This can either be one of three things : A CreditCard object A Check object or a token . The token is called the Master ID . This is a unique transaction ID returned from a previous transaction . This token associates all the stored information for a previous transaction . options -- A hash of optional parameters .
def authorize(money, payment_object, options = {})
	post = {}
	if payment_object != nil && payment_object.class() != String
	  payment_object.class() == ActiveMerchant::Billing::Check ?
          add_check(post, payment_object) :
          add_creditcard(post, payment_object)
	else
	  post[:RRNO] = payment_object
	end
	add_invoice(post, options)
        add_address(post, options)
        add_customer_data(post, options)
	if options[:rebill] != nil
          post[:REBILLING]       = '1'
          post[:REB_AMOUNT]      = options[:rebill][:rebill_amount]
          post[:REB_FIRST_DATE]  = options[:rebill][:rebill_start_date]
          post[:REB_EXPR]        = options[:rebill][:rebill_expression]
          post[:REB_CYCLES]      = options[:rebill][:rebill_cycles]
        end
	post[:TRANSACTION_TYPE]  = 'AUTH'
	post[:MODE]              = $options[:transaction_mode]
        post[:TAMPER_PROOF_SEAL] = calc_tps(amount(money), post)
        commit(money, post)
      end
def authorize ( money , payment_object , options = { } ) post = { } if payment_object != nil && payment_object . class ( ) != String payment_object . class ( ) == ActiveMerchant :: Billing :: Check ? add_check ( post , payment_object ) : add_creditcard ( post , payment_object ) else post [ :RRNO ] = payment_object end add_invoice ( post , options ) add_address ( post , options ) add_customer_data ( post , options ) if options [ :rebill ] != nil post [ :REBILLING ] = '1' post [ :REB_AMOUNT ] = options [ :rebill ] [ :rebill_amount ] post [ :REB_FIRST_DATE ] = options [ :rebill ] [ :rebill_start_date ] post [ :REB_EXPR ] = options [ :rebill ] [ :rebill_expression ] post [ :REB_CYCLES ] = options [ :rebill ] [ :rebill_cycles ] end post [ :TRANSACTION_TYPE ] = 'AUTH' post [ :MODE ] = $options [ :transaction_mode ] post [ :TAMPER_PROOF_SEAL ] = calc_tps ( amount ( money ) , post ) commit ( money , post ) end
Performs an authorization, which reserves the funds on the customer's credit card.
Performs an authorization which reserves the funds on the customer ' s credit card .
money
<not_specific>
payment_object
<not_specific>
options
<not_specific>