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

- old
+ new

@@ -125,16 +125,13 @@ # # ActiveMerchant::Billing::LinkpointGateway.pem_file = File.read( File.dirname(__FILE__) + '/../mycert.pem' ) # cattr_accessor :pem_file - TEST_URL = 'https://staging.linkpt.net:1129/' - LIVE_URL = 'https://secure.linkpt.net:1129/' + self.test_url = 'https://staging.linkpt.net:1129/' + self.live_url = 'https://secure.linkpt.net:1129/' - # We don't have the certificate to verify LinkPoint - self.ssl_strict = false - self.supported_countries = ['US'] self.supported_cardtypes = [:visa, :master, :american_express, :discover, :jcb, :diners_club] self.homepage_url = 'http://www.linkpoint.com/' self.display_name = 'LinkPoint' @@ -251,10 +248,10 @@ end private # Commit the transaction by posting the XML file to the LinkPoint server def commit(money, creditcard, options = {}) - response = parse(ssl_post(test? ? TEST_URL : LIVE_URL, post_data(money, creditcard, options))) + response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(money, creditcard, options))) Response.new(successful?(response), response[:message], response, :test => test?, :authorization => response[:ordernum], :avs_result => { :code => response[:avs].to_s[2,1] },