Module: OffsitePayments::Integrations::WebPay

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

Overview

Documentation: You will get it after registration steps here: reg.webpay.by/registration-form.php

Defined Under Namespace

Modules: Common Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

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



29
30
31
# File 'lib/offsite_payments/integrations/web_pay.rb', line 29

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

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



33
34
35
# File 'lib/offsite_payments/integrations/web_pay.rb', line 33

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

.service_urlObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/offsite_payments/integrations/web_pay.rb', line 17

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