Module: MasterCard::Core::Environment

Defined in:
lib/mastercard/core/constants.rb

Constant Summary collapse

PRODUCTION =
"production"
PRODUCTION_MTF =
"production_mtf"
PRODUCTION_ITF =
"production_itf"
SANDBOX =
"sandbox"
SANDBOX_STATIC =
"sandbox_static"
SANDBOX_MTF =
"sandbox_mtf"
SANDBOX_ITF =
"sandbox_itf"
STAGE =
"stage"
STAGE_MTF =
"stage_mtf"
STAGE_ITF =
"stage_itf"
DEV =
"dev"
LOCALHOST =
"localhost"
OTHER =
"other"
ITF =
"itf"
PERF =
"perf"
MAPPING =
{
    "production" => ["https://api.mastercard.com", nil],
    "production_mtf" => ["https://api.mastercard.com", "mtf"],
    "production_itf" => ["https://api.mastercard.com", "itf"],
    "sandbox"  => ["https://sandbox.api.mastercard.com", nil],
    "sandbox_static"  => ["https://sandbox.api.mastercard.com", "static"],
    "sandbox_mtf"  => ["https://sandbox.api.mastercard.com", "mtf"],
    "sandbox_itf"  => ["https://sandbox.api.mastercard.com", "itf"],
    "stage"  => ["https://stage.api.mastercard.com", nil],
    "stage_mtf"  => ["https://stage.api.mastercard.com", "mtf"],
    "stage_itf"  => ["https://stage.api.mastercard.com", "itf"],
    "dev"  => ["https://dev.api.mastercard.com", nil],
    "localhost"  => ["http://localhost:8081", nil],
    "itf"  => ["https://itf.api.mastercard.com", nil],
    "perf"  => ["https://perf.api.mastercard.com", nil]
}