Module: OffsitePayments::Integrations::Paysbuy
- Defined in:
- lib/offsite_payments/integrations/paysbuy.rb
Defined Under Namespace
Classes: Helper, Notification
Class Method Summary
collapse
Class Method Details
.helper(order, account, options = {}) ⇒ Object
22
23
24
|
# File 'lib/offsite_payments/integrations/paysbuy.rb', line 22
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(query_string, options = {}) ⇒ Object
26
27
28
|
# File 'lib/offsite_payments/integrations/paysbuy.rb', line 26
def self.notification(query_string, options = {})
Notification.new(query_string, options)
end
|
.service_url ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/offsite_payments/integrations/paysbuy.rb', line 10
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
|