Sha256: bb728c3c15b5480bf1ced170083770adc6f356adce1298e9055a0d2a28821bfa
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 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, :timeout 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
paysafe-0.16.0 | lib/paysafe/configuration.rb |
paysafe-0.15.0 | lib/paysafe/configuration.rb |
paysafe-0.14.0 | lib/paysafe/configuration.rb |
paysafe-0.13.0 | lib/paysafe/configuration.rb |