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

- old
+ new

@@ -5,12 +5,12 @@ # Fields that will be sent even if they are blank self.required_fields = [ :action, :amount, :trackid ] end # both URLs are IP restricted - TEST_URL = 'https://apgcert.first-pay.com/AcqENGIN/SecureCapture' - LIVE_URL = 'https://acqengin.first-pay.com/AcqENGIN/SecureCapture' + self.test_url = 'https://apgcert.first-pay.com/AcqENGIN/SecureCapture' + self.live_url = 'https://acqengin.first-pay.com/AcqENGIN/SecureCapture' # The countries the gateway supports merchants from as 2 digit ISO country codes self.supported_countries = ['US'] # The card types supported by the payment gateway @@ -117,10 +117,10 @@ def add_void_data(post, options) post[:transid] = options[:transactionid] end def commit(action, money, post) - response = parse( ssl_post(test? ? TEST_URL : LIVE_URL, post_data(action, post, money)) ) + response = parse( ssl_post(test? ? self.test_url : self.live_url, post_data(action, post, money)) ) Response.new(response[:response] == 'CAPTURED', response[:message], response, :test => test?, :authorization => response[:authorization], :avs_result => { :code => response[:avsresponse] },