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 collapse

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

Class Method Summary collapse

Class Method Details

.notification(post) ⇒ Object



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

def self.notification(post)
  Notification.new(post)
end

.return(query_string) ⇒ Object



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

def self.return(query_string)
  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