Module: ActiveMerchant::Billing::Integrations::WebPay
- Defined in:
- lib/active_merchant/billing/integrations/web_pay.rb,
lib/active_merchant/billing/integrations/web_pay/common.rb,
lib/active_merchant/billing/integrations/web_pay/helper.rb,
lib/active_merchant/billing/integrations/web_pay/notification.rb
Overview
Defined Under Namespace
Modules: Common
Classes: Helper, Notification
Class Method Summary
collapse
Class Method Details
.helper(order, account, options = {}) ⇒ Object
35
36
37
|
# File 'lib/active_merchant/billing/integrations/web_pay.rb', line 35
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(query_string, options = {}) ⇒ Object
39
40
41
|
# File 'lib/active_merchant/billing/integrations/web_pay.rb', line 39
def self.notification(query_string, options = {})
Notification.new(query_string, options)
end
|
.service_url ⇒ Object
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/active_merchant/billing/integrations/web_pay.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
|