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

- old
+ new

@@ -15,12 +15,12 @@ self.homepage_url = 'http://www.datacash.com/' self.display_name = 'DataCash' # Datacash server URLs - TEST_URL = 'https://testserver.datacash.com/Transaction' - LIVE_URL = 'https://mars.transaction.datacash.com/Transaction' + self.test_url = 'https://testserver.datacash.com/Transaction' + self.live_url = 'https://mars.transaction.datacash.com/Transaction' # Different Card Transaction Types AUTH_TYPE = 'auth' CANCEL_TYPE = 'cancel' FULFILL_TYPE = 'fulfill' @@ -529,10 +529,10 @@ # # Returns: # - ActiveMerchant::Billing::Response object # def commit(request) - response = parse(ssl_post(test? ? TEST_URL : LIVE_URL, request)) + response = parse(ssl_post(test? ? self.test_url : self.live_url, request)) Response.new(response[:status] == DATACASH_SUCCESS, response[:reason], response, :test => test?, :authorization => "#{response[:datacash_reference]};#{response[:authcode]};#{response[:ca_reference]}" )