Module: ActiveMerchant::Billing::Integrations::Webmoney

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

Overview

Defined Under Namespace

Modules: Common Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

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



33
34
35
# File 'lib/active_merchant/billing/integrations/webmoney.rb', line 33

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

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



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

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

.service_urlObject



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

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