Module: ActiveMerchant::Billing::Integrations::Robokassa

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

Overview

Defined Under Namespace

Modules: Common Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



35
36
37
# File 'lib/active_merchant/billing/integrations/robokassa.rb', line 35

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

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



39
40
41
# File 'lib/active_merchant/billing/integrations/robokassa.rb', line 39

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

.return(query_string) ⇒ Object



43
44
45
# File 'lib/active_merchant/billing/integrations/robokassa.rb', line 43

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

.service_urlObject



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

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