public static function setCACertPath($path)
    {
        if (!file_exists($path)) {
            throw new PaysafeException('Invalid CA cert path: ' . $path);
        }
        self::$caCertPath = realpath($path);
    }