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

- old
+ new

@@ -1,12 +1,12 @@ require 'json' module ActiveMerchant #:nodoc: module Billing #:nodoc: class FatZebraGateway < Gateway - LIVE_URL = "https://gateway.fatzebra.com.au/v1.0" - SANDBOX_URL = "https://gateway.sandbox.fatzebra.com.au/v1.0" + self.live_url = "https://gateway.fatzebra.com.au/v1.0" + self.test_url = "https://gateway.sandbox.fatzebra.com.au/v1.0" self.supported_countries = ['AU'] self.default_currency = 'AUD' self.money_format = :cents self.supported_cardtypes = [:visa, :master, :american_express, :jcb] @@ -134,11 +134,11 @@ end end # Build the URL based on the AM mode and the URI def get_url(uri) - base = test? ? SANDBOX_URL : LIVE_URL + base = test? ? self.test_url : self.live_url base + "/" + uri end # Builds the auth and U-A headers for the request def headers @@ -147,6 +147,6 @@ "User-Agent" => "Fat Zebra v1.0/ActiveMerchant #{ActiveMerchant::VERSION}" } end end end -end \ No newline at end of file +end