Module: OffsitePayments::Integrations::Megakassa
- Defined in:
- lib/offsite_payments/integrations/megakassa.rb
Overview
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.helper(order, account, options = {}) ⇒ Object
26
27
28
|
# File 'lib/offsite_payments/integrations/megakassa.rb', line 26
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(query_string, options = {}) ⇒ Object
30
31
32
|
# File 'lib/offsite_payments/integrations/megakassa.rb', line 30
def self.notification(query_string, options = {})
Notification.new(query_string, options)
end
|
.return(query_string) ⇒ Object
34
35
36
|
# File 'lib/offsite_payments/integrations/megakassa.rb', line 34
def self.return(query_string)
Return.new(query_string)
end
|
.service_url ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/offsite_payments/integrations/megakassa.rb', line 14
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
|