class RocketGate::Configuration

Constants

DEFAULT_CURRENCY
DEFAULT_TIMEOUT
GATEWAY_LIVE_HOST
GATEWAY_PORT
GATEWAY_SERVLET
GATEWAY_TEST_HOST
GATEWAY_VERSION
USER_AGENT_STRING

Attributes

currency[RW]
merchant_id[RW]
merchant_password[RW]
request_host[RW]
request_path[RW]
request_port[RW]
request_timeout[RW]
request_version[RW]
require_avs[RW]
require_cvv[RW]
require_scrub[RW]
require_ssl[RW]

Public Class Methods

new() click to toggle source
# File lib/rocketgate/configuration.rb, line 31
def initialize
  @currency           = DEFAULT_CURRENCY
  @request_host       = GATEWAY_LIVE_HOST
  @request_path       = GATEWAY_SERVLET
  @request_port       = GATEWAY_PORT
  @request_timeout    = DEFAULT_TIMEOUT
  @request_version    = GATEWAY_VERSION
  @require_avs        = true
  @require_cvv        = true
  @require_scrub      = true
  @require_ssl        = true
end

Public Instance Methods

testing!() click to toggle source
# File lib/rocketgate/configuration.rb, line 44
def testing!
  @request_host       = GATEWAY_TEST_HOST
  @request_port       = GATEWAY_PORT
  @merchant_id        = '1'
  @merchant_password  = 'testpassword'

  self
end