Ejemplo n.º 1
0
        public ActionResult Success(int orderId)
        {
            var model = new PaymentIFrameModel()
            {
                OrderCompletedUrl = _webHelper.GetStoreLocation(false) + "checkout/completed/" + orderId,
            };

            return(View("~/Plugins/Payments.CardCom/Views/PaymentCardCom/Success.cshtml", model));
        }
Ejemplo n.º 2
0
        public ActionResult PaymentIFrame(string url)
        {
            var model = new PaymentIFrameModel()
            {
                IFrameUrl = url,
            };

            return(View("~/Plugins/Payments.CardCom/Views/PaymentCardCom/PaymentIFrame.cshtml", model));
        }
Ejemplo n.º 3
0
        public ActionResult Failed(int orderId = 0, string errorMessage = "", bool isIframe = false)
        {
            if (errorMessage == "\"Deal Response = \"")
            {
                ;
            }
            {
                var model2 = new PaymentIFrameModel()
                {
                    OrderCompletedUrl = _webHelper.GetStoreLocation(false) + "checkout/completed/" + orderId,
                };
                return(View("~/Plugins/Payments.CardCom/Views/PaymentCardCom/Success.cshtml", model2));
            }
            var model = new PaymentIFrameModel()
            {
                ErrorMessage = errorMessage,
                IsIframe     = isIframe,
                OrderId      = orderId,
            };

            return(View("~/Plugins/Payments.CardCom/Views/PaymentCardCom/Failed.cshtml", model));
        }