//public JsonResult RegisterDo(TestModel model) // RegisterDo public JsonResult RegisterDo(OrderRequestFromClient request) // RegisterDo { RegisterDo registerDo = new RegisterDo(Guid.NewGuid().ToString().Replace("-", ""), "testovaya pokupka", 19.635f, "Testing", "Testing123", "finish.html", "error.html"); // string k = model.Name; Answer ans = new Answer(); return(Json(ans)); }
public ActionResult Payment(OrderRequestFromClient request) { OrderPaymentRequest order = null; if (request.photoProcessId != null && request.photoProcessId.Count > 0 && request.sessionId != null) { order = new OrderPaymentRequest() { //sessionId = request.sessionId, //photoProcessId = request.photoProcessId, //orderId = Guid.NewGuid().ToString(), //userId = User.Identity.GetUserId(), //amount = 15, //currency = 933, //description = "texttext", //failUrl = "payment/fail", //returnUrl = "payment/success" }; // запрос и обработка ответа // сохранение в БД //success return(Redirect("https://172.22.147.38/payment/merchants/Testing/payment_ru.html?mdOrder=4f788e8f-2c04-4a82-a40d-c5bf7caadf53")); //error return(Redirect("/Payment/Error")); } else { int id = 2; return(RedirectToAction("Error", "Payment", new { id = id })); } }