# frozen_string_literal: true module CreditGateway class Configuration BASE_URLS = { production: 'https://api.connector.crifrealtime.com', sandbox: 'https://apiuat.connector.crifrealtime.com' }.freeze AUTH_URLS = { production: 'https://auth.connector.crifrealtime.com', sandbox: 'https://uatauth.connector.crifrealtime.com' }.freeze attr_accessor :client_id, :client_secret, :environment, :debug, :verbose def initialize @client_id = '' @client_secret = '' @environment = :sandbox # can be either :sandbox or :production @debug = false @verbose = false end def base_url BASE_URLS[environment.to_sym] end def auth_url AUTH_URLS[environment.to_sym] end end end