Module: ActiveMerchant::Billing::Integrations::PaypalAdaptivePayment

Defined in:
lib/active_merchant/billing/integrations/paypal_adaptive_payment.rb,
lib/active_merchant/billing/integrations/paypal_adaptive_payment/helper.rb,
lib/active_merchant/billing/integrations/paypal_adaptive_payment/return.rb,
lib/active_merchant/billing/integrations/paypal_adaptive_payment/notification.rb

Defined Under Namespace

Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

.notification(post, options = {}) ⇒ Object



30
31
32
# File 'lib/active_merchant/billing/integrations/paypal_adaptive_payment.rb', line 30

def self.notification(post, options = {})
  Notification.new(post)
end

.return(query_string, options = {}) ⇒ Object



34
35
36
# File 'lib/active_merchant/billing/integrations/paypal_adaptive_payment.rb', line 34

def self.return(query_string, options = {})
  Return.new(query_string)
end

.service_urlObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/active_merchant/billing/integrations/paypal_adaptive_payment.rb', line 18

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