lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.1.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.2.0
- old
+ new
@@ -1,29 +1,5 @@
-# Portions of the LinkPoint Gateway by Ryan Heneise
-#--
-# Copyright (c) 2005 Tobias Luetke
-#
-# Permission is hereby granted, free of charge, to any person obtaining
-# a copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, sublicense, and/or sell copies of the Software, and to
-# permit persons to whom the Software is furnished to do so, subject to
-# the following conditions:
-#
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#++
-
require 'rexml/document'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
@@ -128,15 +104,16 @@
TEST_URL = 'https://staging.linkpt.net:1129/'
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]
+ self.homepage_url = 'http://www.linkpoint.com/'
+ self.display_name = 'LinkPoint'
- # @options = {
- # :store_number => options[:login],
- # :result => test? ? "GOOD" : "LIVE"
- # }.update(options)
def initialize(options = {})
requires!(options, :login)
@options = {
:result => 'LIVE',
@@ -235,14 +212,10 @@
:ordertype => "CREDIT",
:order_id => identification
)
commit(money, nil, options)
end
-
- def self.supported_cardtypes
- [:visa, :master, :discover, :american_express]
- end
-
+
def test?
@options[:test] || Base.gateway_mode == :test
end
private