lib/docdata.rb in docdata-0.1.1 vs lib/docdata.rb in docdata-0.1.2

- old
+ new

@@ -55,23 +55,24 @@ def self.setup yield self end def self.url - if Docdata::Config.test_mode + if Config.test_mode "https://test.docdatapayments.com/ps/services/paymentservice/1_1?wsdl" else - "https://www.docdatapayments.com/ps/services/paymentservice/1_1?wsdl" + # "https://www.docdatapayments.com/ps/services/paymentservice/1_1?wsdl" + "https://secure.docdatapayments.com/ps/services/paymentservice/1_0?wsdl" end end # For testing purpose only: set the username and password # in environment variables to make the tests pass with your test # credentials. def self.set_credentials_from_environment - Docdata::Config.password = ENV["DOCDATA_PASSWORD"] - Docdata::Config.username = ENV["DOCDATA_USERNAME"] - Docdata::Config.return_url = ENV["DOCDATA_RETURN_URL"] + Config.password = ENV["DOCDATA_PASSWORD"] + Config.username = ENV["DOCDATA_USERNAME"] + Config.return_url = ENV["DOCDATA_RETURN_URL"] end def self.client Savon.client(wsdl: url) end