/**
         * Handle noscript polling request
         */
        public String pollResultNoScript(String transId, Model model)
        {
            logger.Info(string.Format("Polling result for transId:{0}", transId));

            Message authResponse = getSessionAttribute(AUTH_RESPONSE);

            Message monResponse = (Message)RestClientHelper.GetForObject((string)authResponse["resultMonUrl"], typeof(Message));

            logger.Info(string.Format("monResponse: \n{0}", monResponse));

            if (monResponse != null && "AuthResultNotReady".Equals(monResponse["event"]))
            {
                model.Add("transId", transId);
                model.Add("cardholderInfo", authResponse["cardholderInfo"]);

                //the no_script_poll_result.html page will auto-fresh every second.
                return("no_script_poll_result");
            }
            else if (monResponse != null && "AuthResultReady".Equals(monResponse["event"]))
            {
                return("redirect:/v2/auth/brw/result/noscript?transId=" + transId);
            }
            else
            {
                throw new ArgumentException("Invalid mon url result event type");
            }
        }
        public Message get3RIResult(String serverTransId)
        {
            string resultUrl = Config.AsAuthUrl + "/api/v2/auth/3ri/result?threeDSServerTransID=" + serverTransId;

            Message response = (Message)RestClientHelper.GetForObject(resultUrl, typeof(Message));

            logger.Info(string.Format("authResponse: \n{0}", response));

            return(response);
        }
        public Message getBRWResult(String serverTransId)
        {
            //ActiveServer url for Retrieve Results
            string resultUrl = Config.AsAuthUrl + "/api/v2/auth/brw/result?threeDSServerTransID=" + serverTransId;

            //Get authentication result from ActiveServer
            Message result = (Message)RestClientHelper.GetForObject(resultUrl, typeof(Message));

            return(result);
        }
        public Message authResult(String txid)
        {
            string serverTransId = txid;
            //ActiveServer url for Retrieve Results
            string resultUrl = Config.AsAuthUrl + "/api/v2/auth/brw/result?threeDSServerTransID=" + serverTransId;

            //Get authentication result from ActiveServer (Step 16(F) and Step 21(C))
            Message result = (Message)RestClientHelper.GetForObject(resultUrl, typeof(Message));

            //Show authentication results on result.html (Step 17(F) and Step 22(C))
            return(result);
        }