Module: ActiveMerchant::Billing::Integrations::Paypal
- Defined in:
- lib/active_merchant/billing/integrations/paypal.rb,
lib/active_merchant/billing/integrations/paypal/helper.rb,
lib/active_merchant/billing/integrations/paypal/return.rb,
lib/active_merchant/billing/integrations/paypal/notification.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.notification(post, options = {}) ⇒ Object
29
30
31
|
# File 'lib/active_merchant/billing/integrations/paypal.rb', line 29
def self.notification(post, options = {})
Notification.new(post)
end
|
.return(query_string, options = {}) ⇒ Object
33
34
35
|
# File 'lib/active_merchant/billing/integrations/paypal.rb', line 33
def self.return(query_string, options = {})
Return.new(query_string)
end
|
.service_url ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/active_merchant/billing/integrations/paypal.rb', line 17
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
|