lib/gestpay/digest.rb in gestpay-0.0.4 vs lib/gestpay/digest.rb in gestpay-0.1.0

- old
+ new

@@ -14,10 +14,14 @@ attr_accessor :client def initialize # SOAP Client operations: # => [:encrypt, :decrypt] - @client = Savon.client(:wsdl => URL[Gestpay.config.environment]) + savon_options = {:wsdl => URL[Gestpay.config.environment]} + if Gestpay.config.proxy + savon_options.merge!({ :proxy=> URI.parse(Gestpay.config.proxy)}) + end + @client = Savon.client(savon_options) end def soap_options(data) { :message => {