Module: OffsitePayments::Integrations::WorldPay
- Defined in:
- lib/offsite_payments/integrations/world_pay.rb
Defined Under Namespace
Classes: Helper, Notification
Class Method Summary
collapse
Class Method Details
.notification(post, options = {}) ⇒ Object
19
20
21
|
# File 'lib/offsite_payments/integrations/world_pay.rb', line 19
def self.notification(post, options = {})
Notification.new(post, options)
end
|
.return(post, options = {}) ⇒ Object
23
24
25
|
# File 'lib/offsite_payments/integrations/world_pay.rb', line 23
def self.return(post, options = {})
Return.new(post, options)
end
|
.service_url ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/offsite_payments/integrations/world_pay.rb', line 8
def self.service_url
case OffsitePayments.mode
when :production
self.production_url
when :test
self.test_url
else
raise StandardError, "Integration mode set to an invalid value: #{mode}"
end
end
|