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.29.3 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.29.2 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.29.1 lib/active_merchant/billing/integrations/directebanking.rb
jelaniharris-activemerchant-1.29.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.29.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-nsp-1.27.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.28.0 lib/active_merchant/billing/integrations/directebanking.rb
yetanothernguyen-activemerchant-1.21.2 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.27.0 lib/active_merchant/billing/integrations/directebanking.rb
yetanothernguyen-activemerchant-1.21.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.26.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.25.0 lib/active_merchant/billing/integrations/directebanking.rb
jelaniharris-activemerchant-1.24.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.24.0 lib/active_merchant/billing/integrations/directebanking.rb
tlconnor-activemerchant-1.23.3 lib/active_merchant/billing/integrations/directebanking.rb
tlconnor-activemerchant-1.23.2 lib/active_merchant/billing/integrations/directebanking.rb
tlconnor-activemerchant-1.23.1 lib/active_merchant/billing/integrations/directebanking.rb
tlconnor-activemerchant-1.23.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.23.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.22.0 lib/active_merchant/billing/integrations/directebanking.rb