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)); }
public ActionResult PaymentIFrame(string url) { var model = new PaymentIFrameModel() { IFrameUrl = url, }; return(View("~/Plugins/Payments.CardCom/Views/PaymentCardCom/PaymentIFrame.cshtml", model)); }
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)); }