Sha256: 060edb78a363eff2383710673b3a38fe52ce62aa40d8493f92ab1aad0ccdf932

Contents?: true

Size: 1.52 KB

Versions: 80

Compression:

Stored size: 1.52 KB

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Directebanking 
        autoload :Return,       File.dirname(__FILE__) + '/directebanking/return.rb'
        autoload :Helper,       File.dirname(__FILE__) + '/directebanking/helper.rb'
        autoload :Notification, File.dirname(__FILE__) + '/directebanking/notification.rb'
        
        # Supported countries:
        # Germany - DE
        # Austria - AT
        # Belgium - BE
        # Netherlands - NL
        # Switzerland - CH
        # Great Britain - GB
        
        # Overwrite this if you want to change the directebanking test url
        mattr_accessor :test_url
        self.test_url = 'https://www.directebanking.com/payment/start'
        
        # Overwrite this if you want to change the directebanking production url
        mattr_accessor :production_url 
        self.production_url = 'https://www.directebanking.com/payment/start'
        
        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

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

        def self.return(post, options = {})
          Return.new(post, options)
        end
      end
    end
  end
end

Version data entries

80 entries across 80 versions & 11 rubygems

Version Path
activemerchant-1.41.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.40.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.39.2 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.39.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.39.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.38.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.38.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.37.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.36.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.35.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.35.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.34.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.34.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.33.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.32.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.32.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.31.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.31.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.30.0 lib/active_merchant/billing/integrations/directebanking.rb
jelaniharris-activemerchant-1.29.2 lib/active_merchant/billing/integrations/directebanking.rb