Module: OffsitePayments::Integrations::Webmoney

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

Overview

Defined Under Namespace

Modules: Common Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

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



27
28
29
# File 'lib/offsite_payments/integrations/webmoney.rb', line 27

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

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



31
32
33
# File 'lib/offsite_payments/integrations/webmoney.rb', line 31

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

.service_urlObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/offsite_payments/integrations/webmoney.rb', line 15

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