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
yetanothernguyen-activemerchant-1.21.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.21.0 lib/active_merchant/billing/integrations/directebanking.rb
tlconnor-activemerchant-1.20.4 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.20.4 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.20.3 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.20.2 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.20.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.20.0 lib/active_merchant/billing/integrations/directebanking.rb
vibedeck-activemerchant-1.18.2 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.18.1 lib/active_merchant/billing/integrations/directebanking.rb
fishman-activemerchant-1.18.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.18.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.17.0 lib/active_merchant/billing/integrations/directebanking.rb
yetanothernguyen-activemerchant-1.16.0 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.16.0 lib/active_merchant/billing/integrations/directebanking.rb
gonow-activemerchant-1.15.0 lib/active_merchant/billing/integrations/directebanking.rb
bitfluent-activemerchant-1.15.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-kiddy-1.15.0.kiddy.1 lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-kiddy-1.15.0.kiddy lib/active_merchant/billing/integrations/directebanking.rb
activemerchant-1.15.0 lib/active_merchant/billing/integrations/directebanking.rb