Module: ActiveMerchant::Billing::Integrations::Paxum

Defined in:
lib/active_merchant/billing/integrations/paxum.rb,
lib/active_merchant/billing/integrations/paxum/common.rb,
lib/active_merchant/billing/integrations/paxum/helper.rb,
lib/active_merchant/billing/integrations/paxum/notification.rb

Overview

Defined Under Namespace

Modules: Common Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

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



34
35
36
# File 'lib/active_merchant/billing/integrations/paxum.rb', line 34

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

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



38
39
40
# File 'lib/active_merchant/billing/integrations/paxum.rb', line 38

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

.service_urlObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/active_merchant/billing/integrations/paxum.rb', line 22

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