Ejemplo n.º 1
0
        public ActionResult pay(CustomerDetails model)
        {
            if (ModelState.IsValid)
            {
                model.CardFee    = 100;
                model.customerIp = "172.10.114";

                string paymentconfirmation = paymentGateway.FetchedCustomerDetails(model);

                ViewBag.Data = paymentconfirmation;
                return(View("index", model));
            }
            else
            {
                ViewBag.Data = "Enter Valid Details";
                return(View("index", model));
            }
        }