| Module | ActiveMerchant::Billing::Base |
| In: |
lib/active_merchant/billing/base.rb
|
Return the matching gateway for the provider
ActiveMerchant::Billing::Base.gateway(‘moneris’).new
# 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
Return the matching integration module You can then get the notification from the module
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