Sha256: bf31bddd259414f44356a37e8c6ed09ec0a4ddc4db83e64a9819cadb64a8b58a

Contents?: true

Size: 1.18 KB

Versions: 48

Compression:

Stored size: 1.18 KB

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module FirstData
        autoload :Helper, 'active_merchant/billing/integrations/first_data/helper.rb'
        autoload :Notification, 'active_merchant/billing/integrations/first_data/notification.rb'

        # Overwrite this if you want to change the ANS test url
        mattr_accessor :test_url
        self.test_url = 'https://demo.globalgatewaye4.firstdata.com/payment'

        # Overwrite this if you want to change the ANS production url
        mattr_accessor :production_url
        self.production_url = 'https://checkout.globalgatewaye4.firstdata.com/payment'

        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)
          Notification.new(post)
        end

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

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
tanga_activemerchant-1.38.0.5 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/integrations/first_data.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.43.3 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.7 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.6 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.5 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.4 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.3 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.2 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.1 lib/active_merchant/billing/integrations/first_data.rb
activemerchant-1.42.0 lib/active_merchant/billing/integrations/first_data.rb