Module: OffsitePayments::Integrations::Robokassa

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

Overview

Defined Under Namespace

Modules: Common Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



28
29
30
# File 'lib/offsite_payments/integrations/robokassa.rb', line 28

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

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



32
33
34
# File 'lib/offsite_payments/integrations/robokassa.rb', line 32

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

.return(query_string) ⇒ Object



36
37
38
# File 'lib/offsite_payments/integrations/robokassa.rb', line 36

def self.return(query_string)
  Return.new(query_string)
end

.service_urlObject



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

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