Sha256: 3592bbc33e3db5e39cecee21c5ff1f87317833d9e32a0fa55a5d5a996e64d677

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

module ActiveMerchant
  module Billing
    class TnsGateway < Gateway
      include MastercardGateway

      class_attribute :live_na_url, :live_ap_url, :live_eu_url, :test_na_url, :test_ap_url, :test_eu_url

      VERSION = '52'

      self.live_na_url = "https://secure.na.tnspayments.com/api/rest/version/#{VERSION}/"
      self.test_na_url = "https://secure.na.tnspayments.com/api/rest/version/#{VERSION}/"

      self.live_ap_url = "https://secure.ap.tnspayments.com/api/rest/version/#{VERSION}/"
      self.test_ap_url = "https://secure.ap.tnspayments.com/api/rest/version/#{VERSION}/"

      self.live_eu_url = "https://secure.eu.tnspayments.com/api/rest/version/#{VERSION}/"
      self.test_eu_url = "https://secure.eu.tnspayments.com/api/rest/version/#{VERSION}/"

      self.display_name = 'TNS'
      self.homepage_url = 'http://www.tnsi.com/'
      self.supported_countries = %w(AR AU BR FR DE HK MX NZ SG GB US)
      self.default_currency = 'USD'
      self.supported_cardtypes = %i[visa master american_express discover diners_club jcb maestro]
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
activemerchant-1.126.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways/tns.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.116.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.114.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.113.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.112.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.111.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.110.0 lib/active_merchant/billing/gateways/tns.rb
activemerchant-1.109.0 lib/active_merchant/billing/gateways/tns.rb