public ActionResult TransactionRefund() { var buyOrder = Request.Form["buy_order"]; var childCommerceCode = Request.Form["child_commerce_code"]; var childBuyOrder = Request.Form["child_buy_order"]; var amount = decimal.Parse(Request.Form["amount"]); var token = Request.Form["TBK_TOKEN"]; var userName = Request.Form["user_name"]; var result = MallDeferredTransaction.Refund(buyOrder, childCommerceCode, childBuyOrder, amount); Console.WriteLine(result); ViewBag.BuyOrder = buyOrder; ViewBag.ChildCommerceCode = childCommerceCode; ViewBag.ChildBuyOrder = childBuyOrder; ViewBag.Amount = amount; ViewBag.Result = result; ViewBag.Token = token; ViewBag.UserName = userName; var urlHelper = new UrlHelper(ControllerContext.RequestContext); ViewBag.Action = urlHelper.Action("InscriptionDelete", "OneclickMallDeferred", null, Request.Url.Scheme); return(View()); }
public ActionResult ExecuteMallDeferredRefund() { var token = Request.Form["token_ws"]; var buyOrder = Request.Form["buy_order"]; var commerceCode = Request.Form["commerce_code"]; var amount = decimal.Parse(Request.Form["amount"]); ViewBag.Token = token; UrlHelper urlHelper = new UrlHelper(ControllerContext.RequestContext); ViewBag.Action = urlHelper.Action("ExecuteMallDeferredStatus", "WebpayPlus", null, Request.Url.Scheme); ViewBag.SaveAmount = amount; ViewBag.SaveCommerceCode = commerceCode; ViewBag.SaveToken = token; ViewBag.SaveBuyOrder = buyOrder; var result = MallDeferredTransaction.Refund(token, buyOrder, commerceCode, amount); ViewBag.Result = result; return(View()); }