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

- old
+ new

@@ -5,10 +5,12 @@ class SmartPs < Gateway #:nodoc: ## # This is the base gateway for processors who use the smartPS processing system + self.abstract_class = true + def initialize(options = {}) requires!(options, :login, :password) @options = options super end @@ -216,10 +218,10 @@ results end def commit(action, money, parameters) parameters[:amount] = amount(money) if money - response = parse( ssl_post(api_url, post_data(action,parameters)) ) + response = parse( ssl_post(self.live_url, post_data(action,parameters)) ) Response.new(response["response"] == "1", message_from(response), response, :authorization => response["transactionid"], :test => test?, :cvv_result => response["cvvresponse"], :avs_result => { :code => response["avsresponse"] }