Method: AuthorizeNet::ARB::Transaction#initialize

Defined in:
lib/authorize_net/arb/transaction.rb

#initialize(api_login_id, api_transaction_key, options = {}) ⇒ Transaction

Constructs an ARB transaction. You can use the new ARB transaction object to issue a request to the payment gateway and parse the response into a new AuthorizeNet::ARB::Response object.

api_login_id

Your API login ID, as a string.

api_transaction_key

Your API transaction key, as a string.

options

A hash of options. See below for values.

Options

gateway

The gateway to submit the transaction to. Can be a URL string, an AuthorizeNet::ARB::Transaction::Gateway constant, or one of the convenience symbols :sandbox, :test, :production, or :live (:test is an alias for :sandbox, and :live is an alias for :production).

verify_ssl

A boolean indicating if the SSL certificate of the gateway should be verified. Defaults to false.

reference_id

A string that can be used to identify a particular transaction with its response. Will be echo'd in the response, only if it was provided in the transaction. Defaults to nil.



41
42
43
# File 'lib/authorize_net/arb/transaction.rb', line 41

def initialize(, api_transaction_key, options = {})
  super
end