public async Task <AjaxResponse> FPXDirectResponse(FPXResponse data)
 {
     try
     {
         return(new AjaxResponse(true));
     }
     catch (Exception ex)
     {
         Log.Error(nameof(PaymentManager), ex);
         throw ex;
     }
 }
Exemple #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))));
            }
        }