Class: PaymentechOrbitalRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PaymentechOrbitalRequest

Returns a new instance of PaymentechOrbitalRequest.



4
5
6
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb', line 4

def initialize(options={})
  @options = options
end

Instance Attribute Details

#gatewayObject (readonly)

Returns the value of attribute gateway.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb', line 2

def gateway
  @gateway
end

#optionsObject (readonly)

Returns the value of attribute options.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb', line 2

def options
  @options
end

Instance Method Details

#headersObject



12
13
14
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb', line 12

def headers
  @_headers ||= options[:headers] || {}
end

#to_xmlObject



8
9
10
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/paymentech_orbital_request.rb', line 8

def to_xml
  @_xml ||= build_request(options)
end