Sha256: afb68400bcba9a90d56948bce4797ad160e6fc39848a7d420e4ceed575bbb913

Contents?: true

Size: 758 Bytes

Versions: 2

Compression:

Stored size: 758 Bytes

Contents

require File.dirname(__FILE__) + '/adyen/helper.rb'
require File.dirname(__FILE__) + '/adyen/notification.rb'
require File.dirname(__FILE__) + '/adyen/return.rb'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Adyen

        mattr_accessor :service_url

        TEST_URL = 'https://test.adyen.com/hpp/select.shtml'
        LIVE_URL = 'https://live.adyen.com/hpp/select.shtml'

        def self.service_url
          ActiveMerchant::Billing::Base.integration_mode == :test ? TEST_URL : LIVE_URL
        end

        def self.notification(post)
          Notification.new(post)
        end

        def self.return(query_string)
          Return.new(query_string)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activemerchant-est-1.4.2.6 lib/active_merchant/billing/integrations/adyen.rb
activemerchant-est-1.4.2.5 lib/active_merchant/billing/integrations/adyen.rb