Module: ActiveMerchant::Billing::Integrations::EPaymentPlans

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

Defined Under Namespace

Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

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



38
39
40
# File 'lib/active_merchant/billing/integrations/e_payment_plans.rb', line 38

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

.notification_confirmation_urlObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/active_merchant/billing/integrations/e_payment_plans.rb', line 26

def self.notification_confirmation_url
  mode = ActiveMerchant::Billing::Base.integration_mode
  case mode
  when :production
    "#{production_url}/order/confirmation"
  when :test
    "#{test_url}/order/confirmation"
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end

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



42
43
44
# File 'lib/active_merchant/billing/integrations/e_payment_plans.rb', line 42

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

.service_urlObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/active_merchant/billing/integrations/e_payment_plans.rb', line 14

def self.service_url
  mode = ActiveMerchant::Billing::Base.integration_mode
  case mode
  when :production
    "#{production_url}/order/purchase"
  when :test
    "#{test_url}/order/purchase"
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end