Sha256: 92a4876f9fe0f156779f67e1e6a5016cb7769b70329cd92b5507d966b770a67b

Contents?: true

Size: 774 Bytes

Versions: 29

Compression:

Stored size: 774 Bytes

Contents

require File.dirname(__FILE__) + '/hi_trust/helper.rb'
require File.dirname(__FILE__) + '/hi_trust/notification.rb'
require File.dirname(__FILE__) + '/hi_trust/return.rb'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module HiTrust 
        TEST_URL = 'https://testtrustlink.hitrust.com.tw/TrustLink/TrxReq'
        LIVE_URL = 'https://trustlink.hitrust.com.tw/TrustLink/TrxReq'
        
        def self.service_url
          ActiveMerchant::Billing::Base.integration_mode == :test ? TEST_URL : LIVE_URL
        end

        def self.notification(post)
          Notification.new(post)
        end
        
        def self.return(query_string)
          Return.new(query_string)
        end  
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 10 rubygems

Version Path
johnideal-activemerchant-1.4.10 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.11 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.4 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.5 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.6 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.7 lib/active_merchant/billing/integrations/hi_trust.rb
johnideal-activemerchant-1.4.8 lib/active_merchant/billing/integrations/hi_trust.rb
martinstannard-activemerchant-0.1.0 lib/active_merchant/billing/integrations/hi_trust.rb
mattbauer-activemerchant-1.4.2 lib/active_merchant/billing/integrations/hi_trust.rb
seamusabshere-active_merchant-1.4.2.1 lib/active_merchant/billing/integrations/hi_trust.rb
seamusabshere-active_merchant-1.4.2.3 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.3 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.4 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.5 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.6 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.7 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.8 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-tomriley-active_merchant-1.4.2.4 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.11 lib/active_merchant/billing/integrations/hi_trust.rb
tomriley-active_merchant-1.4.2.10 lib/active_merchant/billing/integrations/hi_trust.rb