Module: ActiveMerchant::Billing::Integrations::Paysbuy

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

Defined Under Namespace

Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

.helper(order, account, options = {}) ⇒ Object



26
27
28
# File 'lib/active_merchant/billing/integrations/paysbuy.rb', line 26

def self.helper(order, , options = {})
  Helper.new(order, , options)
end

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



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

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

.service_urlObject



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

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