Sha256: 01a76fd43e053d909b9136e1d8cec278b6ff197feba51594340e7fdb28e7bc54

Contents?: true

Size: 974 Bytes

Versions: 1

Compression:

Stored size: 974 Bytes

Contents

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

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module PayDollar 
       
        mattr_accessor :production_url
        mattr_accessor :test_url
        self.production_url = 'https://www.paydollar.com/b2c2/eng/payment/payForm.jsp'
        self.test_url       = 'https://test.paydollar.com/b2cDemo/eng/payment/payForm.jsp'

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

        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yetanothernguyen-activemerchant-1.21.2 lib/active_merchant/billing/integrations/pay_dollar.rb