Module: ActiveMerchant::Billing::Integrations::PayFast
- Defined in:
- lib/active_merchant/billing/integrations/pay_fast.rb,
lib/active_merchant/billing/integrations/pay_fast/common.rb,
lib/active_merchant/billing/integrations/pay_fast/helper.rb,
lib/active_merchant/billing/integrations/pay_fast/return.rb,
lib/active_merchant/billing/integrations/pay_fast/notification.rb
Overview
Defined Under Namespace
Modules: Common
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.helper(order, account, options = {}) ⇒ Object
56
57
58
|
# File 'lib/active_merchant/billing/integrations/pay_fast.rb', line 56
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(query_string, options = {}) ⇒ Object
60
61
62
|
# File 'lib/active_merchant/billing/integrations/pay_fast.rb', line 60
def self.notification(query_string, options = {})
Notification.new(query_string, options)
end
|
.return(post, options = {}) ⇒ Object
64
65
66
|
# File 'lib/active_merchant/billing/integrations/pay_fast.rb', line 64
def self.return(post, options = {})
Return.new(post, options)
end
|
.service_url ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/active_merchant/billing/integrations/pay_fast.rb', line 32
def self.service_url
mode = ActiveMerchant::Billing::Base.integration_mode
case mode
when :production
self.process_production_url
when :test
self.process_test_url
else
raise StandardError, "Integration mode set to an invalid value: #{mode}"
end
end
|
.validate_service_url ⇒ Object
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/active_merchant/billing/integrations/pay_fast.rb', line 44
def self.validate_service_url
mode = ActiveMerchant::Billing::Base.integration_mode
case mode
when :production
self.validate_production_url
when :test
self.validate_test_url
else
raise StandardError, "Integration mode set to an invalid value: #{mode}"
end
end
|