Module: ActiveMerchant::Billing::Integrations::HiTrust

Defined in:
lib/active_merchant/billing/integrations/hi_trust.rb,
lib/active_merchant/billing/integrations/hi_trust/helper.rb,
lib/active_merchant/billing/integrations/hi_trust/return.rb,
lib/active_merchant/billing/integrations/hi_trust/notification.rb

Defined Under Namespace

Classes: Helper, Notification, Return

Constant Summary

TEST_URL =
'https://testtrustlink.hitrust.com.tw/TrustLink/TrxReqForJava'
LIVE_URL =
'https://trustlink.hitrust.com.tw/TrustLink/TrxReqForJava'

Class Method Summary collapse

Class Method Details

.notification(post, options = {}) ⇒ Object



17
18
19
# File 'lib/active_merchant/billing/integrations/hi_trust.rb', line 17

def self.notification(post, options = {})
  Notification.new(post)
end

.return(query_string, options = {}) ⇒ Object



21
22
23
# File 'lib/active_merchant/billing/integrations/hi_trust.rb', line 21

def self.return(query_string, options = {})
  Return.new(query_string)
end

.service_urlObject



13
14
15
# File 'lib/active_merchant/billing/integrations/hi_trust.rb', line 13

def self.service_url
  ActiveMerchant::Billing::Base.integration_mode == :test ? TEST_URL : LIVE_URL
end