public ActionResult Handle()
        {
            byte[] param   = Request.BinaryRead(Request.ContentLength);
            string ipnData = Encoding.ASCII.GetString(param);

            _payPalIPNService.HandleIPN(ipnData);

            return(Content(""));
        }
Example #2
0
        public ActionResult IPNHandler()
        {
            byte[] param   = Request.BinaryRead(Request.ContentLength);
            string ipnData = Encoding.ASCII.GetString(param);

            _payPalIPNService.HandleIPN(ipnData);

            //nothing should be rendered to visitor
            return(Content(""));
        }
        public IActionResult IPNHandler()
        {
            using (var ms = new MemoryStream())
            {
                Request.Body.CopyTo(ms);
                var ipnData = Encoding.ASCII.GetString(ms.ToArray());

                _payPalIPNService.HandleIPN(ipnData);
            }

            //nothing should be rendered to visitor
            return(Content(""));
        }
        public ActionResult IPNHandler()
        {
            byte[] param;
            using (var stream = new MemoryStream())
            {
                this.Request.Body.CopyTo(stream);
                param = stream.ToArray();
            }
            string ipnData = Encoding.ASCII.GetString(param);

            _payPalIPNService.HandleIPN(ipnData);

            //nothing should be rendered to visitor
            return(Content(""));
        }