Пример #1
0
 public IActionResult PaymentCallBack(int success, string trackId, int orderId, int status)
 {
     if (success == 1 || status == 2)
     {
         var response = _customerServices.VerifyRequest(new verifyRequest()
         {
             merchant = "zibal",
             trackId  = trackId
         });
         if (response.result == "100")
         {
             _customerServices.AcceptOrder(orderId);
             ViewData["success"] = true;
             return(View(response));
         }
     }
     ViewData["success"] = null;
     return(View());
 }