Module: OffsitePayments::Integrations::Directebanking

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

Defined Under Namespace

Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



32
33
34
# File 'lib/offsite_payments/integrations/directebanking.rb', line 32

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

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



36
37
38
# File 'lib/offsite_payments/integrations/directebanking.rb', line 36

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

.service_urlObject



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

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