Method: MerbMerchant::Billing::AuthorizeNetGateway#initialize

Defined in:
lib/merb_merchant/billing/gateways/authorize_net.rb

#initialize(options = {}) ⇒ AuthorizeNetGateway

Creates a new AuthorizeNetGateway

The gateway requires that a valid login and password 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.



71
72
73
74
75
# File 'lib/merb_merchant/billing/gateways/authorize_net.rb', line 71

def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  super
end