Module: ActiveMerchant::Billing::Integrations::Directebanking

Defined in:
lib/active_merchant/billing/integrations/directebanking.rb,
lib/active_merchant/billing/integrations/directebanking/helper.rb,
lib/active_merchant/billing/integrations/directebanking/return.rb,
lib/active_merchant/billing/integrations/directebanking/notification.rb

Defined Under Namespace

Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



37
38
39
# File 'lib/active_merchant/billing/integrations/directebanking.rb', line 37

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

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



41
42
43
# File 'lib/active_merchant/billing/integrations/directebanking.rb', line 41

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

.service_urlObject



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/active_merchant/billing/integrations/directebanking.rb', line 25

def self.service_url
  mode = ActiveMerchant::Billing::Base.integration_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