Module: AbtainBilling::Billing::Integrations::HiTrust

Defined in:
lib/abtain_billing/billing/integrations/hi_trust.rb,
lib/abtain_billing/billing/integrations/hi_trust/helper.rb,
lib/abtain_billing/billing/integrations/hi_trust/return.rb,
lib/abtain_billing/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



16
17
18
# File 'lib/abtain_billing/billing/integrations/hi_trust.rb', line 16

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

.return(query_string) ⇒ Object



20
21
22
# File 'lib/abtain_billing/billing/integrations/hi_trust.rb', line 20

def self.return(query_string)
  Return.new(query_string)
end

.service_urlObject



12
13
14
# File 'lib/abtain_billing/billing/integrations/hi_trust.rb', line 12

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