Module: MerbMerchant::Billing::Integrations::Paypal
- Defined in:
- lib/merb_merchant/billing/integrations/paypal.rb,
lib/merb_merchant/billing/integrations/paypal/helper.rb,
lib/merb_merchant/billing/integrations/paypal/return.rb,
lib/merb_merchant/billing/integrations/paypal/notification.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.notification(post) ⇒ Object
44
45
46
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 44
def self.notification(post)
Notification.new(post)
end
|
.production_url ⇒ Object
Overwrite this if you want to change the Paypal production url
22
23
24
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 22
def self.production_url
@@production_url
end
|
.production_url=(production_url) ⇒ Object
26
27
28
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 26
def self.production_url=(production_url)
@@production_url = production_url
end
|
.return(query_string) ⇒ Object
48
49
50
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 48
def self.return(query_string)
Return.new(query_string)
end
|
.service_url ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 32
def self.service_url
mode = MerbMerchant::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
|
.test_url ⇒ Object
Overwrite this if you want to change the Paypal test url
11
12
13
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 11
def self.test_url
@@test_url
end
|
.test_url=(test_url) ⇒ Object
15
16
17
|
# File 'lib/merb_merchant/billing/integrations/paypal.rb', line 15
def self.test_url=(test_url)
@@test_url = test_url
end
|