lib/active_merchant/billing/gateways/bluepay.rb
# Perform a purchase, which is essentially an authorization and capture in a single operation. 
# This is referred to a SALE transaction in BluePay
#
# ==== Parameters
#
# * <tt>money</tt> -- The amount to be purchased 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.,
Perform a purchase, which is essentially an authorization and capture in a single operation.
This is referred to a SALE transaction in BluePay

Parameters

money -- The amount to be purchased 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..
Perform a purchase which is essentially an authorization and capture in a single operation . This is referred to a SALE transaction in BluePay Parameters money -- The amount to be purchased 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 purchase(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]  = 'SALE'
	post[:MODE]              = $options[:transaction_mode]
	post[:TAMPER_PROOF_SEAL] = calc_tps(amount(money), post)
        commit(money, post)
      end
def purchase ( 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 ] = 'SALE' post [ :MODE ] = $options [ :transaction_mode ] post [ :TAMPER_PROOF_SEAL ] = calc_tps ( amount ( money ) , post ) commit ( money , post ) end
Perform a purchase, which is essentially an authorization and capture in a single operation.
Perform a purchase which is essentially an authorization and capture in a single operation .
money
<not_specific>
payment_object
<not_specific>
options
<not_specific>