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
ghazel-activemerchant-1.4.2 lib/active_merchant/billing/integrations/hi_trust.rb
abtain_billing-1.0 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.4.1 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.4.0 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.3.1 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.3.0 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.3.2 lib/active_merchant/billing/integrations/hi_trust.rb
activemerchant-1.4.2 lib/active_merchant/billing/integrations/hi_trust.rb
spree-0.2.0 vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/hi_trust.rb