Method: ActiveMerchant::Billing::AuthorizeNetCimGateway#initialize

Defined in:
lib/active_merchant/billing/gateways/authorize_net_cim.rb

#initialize(options = {}) ⇒ AuthorizeNetCimGateway

Creates a new AuthorizeNetCimGateway

The gateway requires that a valid API Login ID and Transaction Key be passed in the options hash.

Options

  • :login – The Authorize.Net API Login ID (REQUIRED)

  • :password – The Authorize.Net Transaction Key. (REQUIRED)

  • :testtrue or false. If true, perform transactions against the test server. Otherwise, perform transactions against the production server.

  • :test_requeststrue or false. If true, perform transactions without the test flag. This is useful when you need to generate card declines, AVS or CVV errors. Will hold the same value as :test by default.

  • :delimiter – The delimiter used in the direct response. Default is ‘,’ (comma).



102
103
104
105
106
# File 'lib/active_merchant/billing/gateways/authorize_net_cim.rb', line 102

def initialize(options = {})
  requires!(options, :login, :password)
  super
  @options[:test_requests] = test? if @options[:test_requests].nil?
end