class ActiveMerchant::Billing::OrbitalGateway::AVSResult

Unfortunately, Orbital uses their own special codes for AVS responses that are different than the standard codes defined in ActiveMerchant::Billing::AVSResult.

This class encapsulates the response codes shown on page 240 of their spec: download.chasepaymentech.com/docs/orbital/orbital_gateway_xml_specification.pdf

Constants

CODES
ORBITAL_POSTAL_MATCH_CODE

Map vendor's AVS result code to a postal match code

ORBITAL_STREET_MATCH_CODE

Map vendor's AVS result code to a street match code

Public Class Methods

messages() click to toggle source
# File lib/active_merchant/billing/gateways/orbital.rb, line 790
def self.messages
  CODES
end
new(code) click to toggle source
# File lib/active_merchant/billing/gateways/orbital.rb, line 794
def initialize(code)
  @code = (code.blank? ? nil : code.to_s.strip.upcase)
  if @code
    @message      = CODES[@code]
    @postal_match = ORBITAL_POSTAL_MATCH_CODE[@code]
    @street_match = ORBITAL_STREET_MATCH_CODE[@code]
  end
end