Module: ActiveMerchant::Billing::Integrations::WorldPay
- Defined in:
- lib/active_merchant/billing/integrations/world_pay.rb,
lib/active_merchant/billing/integrations/world_pay/helper.rb,
lib/active_merchant/billing/integrations/world_pay/notification.rb
Defined Under Namespace
Classes: Helper, Notification
Class Method Summary
collapse
Class Method Details
.notification(post) ⇒ Object
28
29
30
|
# File 'lib/active_merchant/billing/integrations/world_pay.rb', line 28
def self.notification(post)
Notification.new(post)
end
|
.service_url ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/active_merchant/billing/integrations/world_pay.rb', line 16
def self.service_url
mode = ActiveMerchant::Billing::Base.integration_mode
case mode
when :production
production_url
when :test
test_url
else
raise StandardError, "Integration mode set to an invalid value: #{mode}"
end
end
|