Class Index [+]

Quicksearch

ActiveMerchant::Billing::Base

Public Class Methods

gateway(name) click to toggle source

Return the matching gateway for the provider

    # File lib/active_merchant/billing/base.rb, line 33
33:       def self.gateway(name)
34:         Billing.const_get("#{name.to_s.downcase}_gateway".camelize)
35:       end
integration(name) click to toggle source

Return the matching integration module You can then get the notification from the module

  • bogus: Bogus - Does nothing (for testing)

  • chronopay: Chronopay - Does nothing (for testing)

  • paypal: Chronopay - Does nothing (for testing)

    chronopay = ActiveMerchant::Billing::Base.integration(‘chronopay’) notification = chronopay.notification(raw_post)

    # File lib/active_merchant/billing/base.rb, line 47
47:       def self.integration(name)
48:         Billing::Integrations.const_get("#{name.to_s.downcase}".camelize)
49:       end
mode=(mode) click to toggle source
    # File lib/active_merchant/billing/base.rb, line 18
18:       def self.mode=(mode)
19:         @@mode = mode
20:         self.gateway_mode = mode
21:         self.integration_mode = mode
22:       end
test?() click to toggle source

A check to see if we’re in test mode

    # File lib/active_merchant/billing/base.rb, line 52
52:       def self.test?
53:         self.gateway_mode == :test
54:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.