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_idYour API login ID, as a string.
api_transaction_keyYour API transaction key, as a string.
optionsA hash of options. See below for values.
Options
gatewayThe 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_sslA boolean indicating if the SSL certificate of the
gatewayshould be verified. Defaults to false.reference_idA 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_login_id, api_transaction_key, = {}) super end |