Example #1
0
        public ActionResult PurchaseResult(bool isValid, eActionKinds actionKind, int?orderNo, int?id, string itemName, string trackingId, string error, string referral)
        {
            var token = new PurchaseResultToken
            {
                IsValid       = isValid
                , ActionKind  = actionKind
                , ItemName    = itemName
                , PriceLineId = id ?? -1
                , Message     = error
                , RedirectUrl = (isValid ? "Success" :"Failure").GenerateCheckoutUrl(id ?? -1, orderNo ?? -1, trackingId, referral)
            };

            return(View(token));
        }
Example #2
0
        public ActionResult PurchaseErrorResult(int?lineId, string itemName, string trackingId, string error)
        {
            var token = new PurchaseResultToken
            {
                IsValid       = false
                , Message     = error
                , ActionKind  = eActionKinds.POST
                , ItemName    = itemName
                , PriceLineId = lineId ?? -1
                , RedirectUrl = string.Empty
                , ShowPage    = true
            };

            return(View("PurchaseResult", token));
        }