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

- old
+ new

@@ -1,10 +1,10 @@ module ActiveMerchant #:nodoc: module Billing #:nodoc: class FederatedCanadaGateway < Gateway # Same URL for both test and live, testing is done by using the test username (demo) and password (password). - URL = 'https://secure.federatedgateway.com/api/transact.php' + self.live_url = self.test_url = 'https://secure.federatedgateway.com/api/transact.php' APPROVED, DECLINED, ERROR = 1, 2, 3 # The countries the gateway supports merchants from as 2 digit ISO country codes self.supported_countries = ['CA'] @@ -122,10 +122,10 @@ end end def commit(action, money, parameters) parameters[:amount] = amount(money) - data = ssl_post(URL, post_data(action, parameters)) + data = ssl_post(self.live_url, post_data(action, parameters)) response = parse(data) message = message_from(response) test_mode = test? Response.new(success?(response), message, response,