Module: OffsitePayments::Integrations::Realex

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

Defined Under Namespace

Modules: Common Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

.helper(order, account, options = {}) ⇒ Object


9
10
11
# File 'lib/offsite_payments/integrations/realex.rb', line 9

def self.helper(order, , options={})
  Helper.new(order, , options)
end

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


13
14
15
# File 'lib/offsite_payments/integrations/realex.rb', line 13

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

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


17
18
19
# File 'lib/offsite_payments/integrations/realex.rb', line 17

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

.service_urlObject


21
22
23
24
25
26
27
28
29
30
31
# File 'lib/offsite_payments/integrations/realex.rb', line 21

def self.service_url
  mode = OffsitePayments.mode
  case mode
  when :production
    self.production_url
  when :test
    self.test_url
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end