Module: OffsitePayments::Integrations::Pay2goPeriod
- Defined in:
- lib/offsite_payments/integrations/pay2go_period.rb
Defined Under Namespace
Classes: Helper, Notification
Constant Summary
collapse
- VERSION =
'1.0'
- RESPOND_TYPE =
'String'
- CHECK_VALUE_FIELDS =
%w(PeriodAmt MerchantID MerchantOrderNo TimeStamp PeriodType)
- CHECK_CODE_FIELDS =
%w(PeriodType MerchantID MerchantOrderNo)
Class Method Summary
collapse
Class Method Details
.notification(post) ⇒ Object
33
34
35
|
# File 'lib/offsite_payments/integrations/pay2go_period.rb', line 33
def self.notification(post)
Notification.new(post)
end
|
.service_url ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/offsite_payments/integrations/pay2go_period.rb', line 19
def self.service_url
mode = ActiveMerchant::Billing::Base.mode
case mode
when :production
'https://api.pay2go.com/API/PeriodAPI'
when :development
'https://capi.pay2go.com/API/PeriodAPI'
when :test
'https://capi.pay2go.com/API/PeriodAPI'
else
raise StandardError, "Integration mode set to an invalid value: #{mode}"
end
end
|
.setup {|_self| ... } ⇒ Object
37
38
39
|
# File 'lib/offsite_payments/integrations/pay2go_period.rb', line 37
def self.setup
yield(self)
end
|