Sha256: b244223514b841fcff1f4b6b00902812407afd1d2d76f4d7da8d6692f970c40a
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
credit_gateway-0.1.1 | lib/credit_gateway/configuration.rb |