Module: ActiveMerchant::Billing::Integrations::Valitor

Defined in:
lib/active_merchant/billing/integrations/valitor.rb,
lib/active_merchant/billing/integrations/valitor/helper.rb,
lib/active_merchant/billing/integrations/valitor/return.rb,
lib/active_merchant/billing/integrations/valitor/notification.rb,
lib/active_merchant/billing/integrations/valitor/response_fields.rb

Defined Under Namespace

Modules: ResponseFields Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

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



23
24
25
# File 'lib/active_merchant/billing/integrations/valitor.rb', line 23

def self.notification(params, options={})
  Notification.new(params, options.merge(:test => test?))
end

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



27
28
29
# File 'lib/active_merchant/billing/integrations/valitor.rb', line 27

def self.return(query_string, options={})
  Return.new(query_string, options.merge(:test => test?))
end

.service_urlObject



19
20
21
# File 'lib/active_merchant/billing/integrations/valitor.rb', line 19

def self.service_url
  (test? ? test_url : production_url)
end

.test?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/active_merchant/billing/integrations/valitor.rb', line 15

def self.test?
  (ActiveMerchant::Billing::Base.integration_mode == :test)
end