Class: Laundry::PaymentsGateway::SocketDriver
- Inherits:
-
MerchantAuthenticatableDriver
- Object
- MerchantAuthenticatableDriver
- Laundry::PaymentsGateway::SocketDriver
- Defined in:
- lib/laundry/payments_gateway/drivers/socket_driver.rb
Instance Attribute Summary
Attributes inherited from MerchantAuthenticatableDriver
Class Method Summary collapse
-
.wsdl ⇒ Object
Setup WSDL.
Instance Method Summary collapse
Methods inherited from MerchantAuthenticatableDriver
#default_body, #initialize, prettifiable_fields, #setup_client!, uglify_hash
Methods included from SOAPModel
Constructor Details
This class inherits a constructor from Laundry::PaymentsGateway::MerchantAuthenticatableDriver
Class Method Details
.wsdl ⇒ Object
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( = {}) execute_socket_query() do http.headers["SOAPAction"] = "http://paymentsgateway.achdirect.com/ExecuteSocketQuery" end end |