Class: Laundry::PaymentsGateway::SocketDriver

Inherits:
MerchantAuthenticatableDriver show all
Defined in:
lib/laundry/payments_gateway/drivers/socket_driver.rb

Instance Attribute Summary

Attributes inherited from MerchantAuthenticatableDriver

#merchant

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MerchantAuthenticatableDriver

#default_body, #initialize, prettifiable_fields, #setup_client!, uglify_hash

Methods included from SOAPModel

#actions, extended, #setup

Constructor Details

This class inherits a constructor from Laundry::PaymentsGateway::MerchantAuthenticatableDriver

Class Method Details

.wsdlObject

Setup WSDL



7
8
9
10
11
12
13
# File 'lib/laundry/payments_gateway/drivers/socket_driver.rb', line 7

def self.wsdl
  if Laundry.sandboxed?
    "https://ws.paymentsgateway.net/pgtest/paymentsgateway.asmx?WSDL"
  else
    "https://ws.paymentsgateway.net/pg/paymentsgateway.asmx?WSDL"
  end
end

Instance Method Details

#exec(options = {}) ⇒ Object



17
18
19
20
21
# File 'lib/laundry/payments_gateway/drivers/socket_driver.rb', line 17

def exec(options = {})
  execute_socket_query(options) do
    http.headers["SOAPAction"] = "http://paymentsgateway.achdirect.com/ExecuteSocketQuery"
  end
end