lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.27.0

- old
+ new

@@ -22,12 +22,12 @@ # * productCode is a value in the line_items hash that is used to tell # CyberSource what kind of item you are selling. It is used when # calculating tax/VAT. # * All transactions use dollar values. class CyberSourceGateway < Gateway - TEST_URL = 'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor' - LIVE_URL = 'https://ics2ws.ic3.com/commerce/1.x/transactionProcessor' + self.test_url = 'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor' + self.live_url = 'https://ics2ws.ic3.com/commerce/1.x/transactionProcessor' XSD_VERSION = "1.69" # visa, master, american_express, discover self.supported_cardtypes = [:visa, :master, :american_express, :discover] @@ -521,10 +521,10 @@ end # Contact CyberSource, make the SOAP request, and parse the reply into a # Response object def commit(request, options) - response = parse(ssl_post(test? ? TEST_URL : LIVE_URL, build_request(request, options))) + response = parse(ssl_post(test? ? self.test_url : self.live_url, build_request(request, options))) success = response[:decision] == "ACCEPT" message = @@response_codes[('r' + response[:reasonCode]).to_sym] rescue response[:message] authorization = success ? [ options[:order_id], response[:requestID], response[:requestToken] ].compact.join(";") : nil