module Promisepay::Default

Default configuration options for {Client}

Constants

API_DOMAIN

Default API domain

ENVIRONMENT

Default environment

Public Class Methods

api_domain() click to toggle source

Default API domain from ENV or {API_DOMAIN}.

@return [String]

# File lib/promisepay/default.rb, line 28
def api_domain
  ENV['PROMISEPAY_API_DOMAIN'] || API_DOMAIN
end
environment() click to toggle source

Default environment from ENV or {ENVIRONMENT}.

@return [String]

# File lib/promisepay/default.rb, line 21
def environment
  ENV['PROMISEPAY_ENVIRONMENT'] || ENVIRONMENT
end
errors_format() click to toggle source

Default username from ENV.

@return [String]

# File lib/promisepay/default.rb, line 49
def errors_format
  ENV['PROMISEPAY_ERRORS_FORMAT'] || 'processed'
end
options() click to toggle source

Configuration options.

@return [Hash]

# File lib/promisepay/default.rb, line 14
def options
  Hash[Promisepay::Configurable.keys.map { |key| [key, send(key)] }]
end
token() click to toggle source

Default token from ENV.

@return [String]

# File lib/promisepay/default.rb, line 35
def token
  ENV['PROMISEPAY_TOKEN']
end
username() click to toggle source

Default username from ENV.

@return [String]

# File lib/promisepay/default.rb, line 42
def username
  ENV['PROMISEPAY_USERNAME']
end