Return the matching gateway for the provider
bogus: BogusGateway - Does nothing (for testing)
moneris: MonerisGateway
authorize_net: AuthorizeNetGateway
trust_commerce: TrustCommerceGateway
ActiveMerchant::Billing::Base.gateway('moneris').new
# File lib/active_merchant/billing/base.rb, line 33 def self.gateway(name) Billing.const_get("#{name.to_s.downcase}_gateway".camelize) end
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 def self.integration(name) Billing::Integrations.const_get("#{name.to_s.downcase}".camelize) end
Generated with the Darkfish Rdoc Generator 2.