Module: OffsitePayments::Integrations::HiTrust

Defined in:
lib/offsite_payments/integrations/hi_trust.rb

Defined Under Namespace

Classes: Helper, Notification, Return

Constant Summary collapse

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



11
12
13
# File 'lib/offsite_payments/integrations/hi_trust.rb', line 11

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

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



15
16
17
# File 'lib/offsite_payments/integrations/hi_trust.rb', line 15

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

.service_urlObject



7
8
9
# File 'lib/offsite_payments/integrations/hi_trust.rb', line 7

def self.service_url
  OffsitePayments.mode == :test ? TEST_URL : LIVE_URL
end