Sha256: 8d0ebc2f02032db160f485ad5d6d38acc8ee3e4249d8e4ab17e0113a03d2cc56

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

Stored size: 434 Bytes

Contents

module Paysafe
  class Configuration

    API_TEST = 'https://api.test.paysafe.com'
    API_LIVE = 'https://api.paysafe.com'

    attr_reader :account_number, :api_base, :api_key, :api_secret, :test_mode, :timeouts

    def initialize(**options)
      @test_mode = true

      options.each do |key, value|
        instance_variable_set("@#{key}", value)
      end

      @api_base = test_mode ? API_TEST : API_LIVE
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paysafe-0.12.0 lib/paysafe/configuration.rb
paysafe-0.11.0 lib/paysafe/configuration.rb
paysafe-0.10.0 lib/paysafe/configuration.rb