Ejemplo n.º 1
0
 public async Task <AjaxResponse> FPXDirectResponse(FPXResponse data)
 {
     try
     {
         return(new AjaxResponse(true));
     }
     catch (Exception ex)
     {
         Log.Error(nameof(PaymentManager), ex);
         throw ex;
     }
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> FpxDirectGetResponse([FromForm] FPXResponse data)
        {
            try
            {
                var result = await _accountingManager.FPXDirectResponse(data);

                Response.Redirect(_appConfiguration["App:ClientRootAddress"] + "account/response");
                return(Json(result));
            }
            catch (UserFriendlyException ex)
            {
                Log.Error(nameof(AccountingController), ex);
                return(Json(new AjaxResponse(new ErrorInfo(ex.Message))));
            }
        }