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

- old
+ new

@@ -1,10 +1,10 @@ module ActiveMerchant #:nodoc: module Billing #:nodoc: class PaystationGateway < Gateway - URL = "https://www.paystation.co.nz/direct/paystation.dll" + self.live_url = self.test_url = "https://www.paystation.co.nz/direct/paystation.dll" # an "error code" of "0" means "No error - transaction successful" SUCCESSFUL_RESPONSE_CODE = '0' # an "error code" of "34" means "Future Payment Stored OK" @@ -163,10 +163,10 @@ post[:tm] = "T" if test? # test mode pstn_prefix_params = post.collect { |key, value| "pstn_#{key}=#{CGI.escape(value.to_s)}" }.join("&") # need include paystation param as "initiator flag for payment engine" - data = ssl_post(URL, "#{pstn_prefix_params}&paystation=_empty") + data = ssl_post(self.live_url, "#{pstn_prefix_params}&paystation=_empty") response = parse(data) message = message_from(response) PaystationResponse.new(success?(response), message, response, :test => (response[:tm] && response[:tm].downcase == "t"),