Atomia.Web.Plugin.PublicOrder.Controllers.PublicOrderController.Payment C# (CSharp) Method

Payment() private method

private Payment ( string amount, string transactionReference, int transactionReferenceType, string status ) : System.Web.Mvc.ActionResult
amount string
transactionReference string
transactionReferenceType int
status string
return System.Web.Mvc.ActionResult
        public ActionResult Payment(string amount, string transactionReference, int transactionReferenceType, string status)
        {
            decimal decimalAmount;
            decimal.TryParse(amount, out decimalAmount);

            if (status.ToUpper() == "OK" || status.ToUpper() == "IN_PROGRESS")
            {
                if (IndexHelper.IsImmediateLoginEnabled(this))
                {
                    Response.Redirect(this.Session["ImmediateLoginUrl"].ToString());
                }
                else
                {
                    return this.RedirectToAction("Thankyou");
                }
            }

            if (status.ToUpper() == "FAILED")
            {
                return RedirectToAction("PaymentFailed");
            }

            return View("Index");
        }