public async Task <IHttpActionResult> CyberPlatCallBackURLApiStatus(string CIPLTransID, string DateTime, string OperatorTransID, string DealerTransID, string ErrorDesc, string ErrorCode, string Signature) { try { var db = new DBContext(); TBL_API_CALLBACK_LOGS objapi = new TBL_API_CALLBACK_LOGS() { CORELATIONID = CIPLTransID, SERVICE_TYPE = DealerTransID, TRANSACTION_NO = CIPLTransID, OPERATOR_ID = OperatorTransID, STATUS = ErrorDesc, RES_CODE = ErrorCode, RES_MSG = Signature, CALLBACK_DATETIME = Convert.ToDateTime(DateTime), CALLBACK_DATAUPDATE = false, CALLBACK_BY = "CyberPlatAPI" }; db.TBL_API_CALLBACK_LOGS.Add(objapi); await db.SaveChangesAsync(); return(Ok(new { statuscode = ErrorCode })); } catch (Exception ex) { return(Ok(new { statuscode = 1 })); throw; } }
public async Task <IHttpActionResult> InstantPayCallBackAPIStatus(string ipay_id, string agent_id, string opr_id, string status, string res_code, string res_msg) { try { var db = new DBContext(); TBL_API_CALLBACK_LOGS objapi = new TBL_API_CALLBACK_LOGS() { CORELATIONID = ipay_id, SERVICE_TYPE = "", TRANSACTION_NO = ipay_id, OPERATOR_ID = opr_id, STATUS = status, RES_CODE = res_code, RES_MSG = res_msg, CALLBACK_DATETIME = DateTime.Now, CALLBACK_DATAUPDATE = false, CALLBACK_BY = "Instantpay" }; db.TBL_API_CALLBACK_LOGS.Add(objapi); await db.SaveChangesAsync(); return(Ok(new { statuscode = res_code })); } catch (Exception ex) { return(Ok(new { statuscode = 1 })); throw; } }
public async Task <IHttpActionResult> MultiLinkBackURLStatusChecking(string accountId, string txid, string transtype) { try { var db = new DBContext(); string accountid_value = accountId; string TransactionId = txid; string TransType = transtype; TBL_API_CALLBACK_LOGS objapi = new TBL_API_CALLBACK_LOGS() { CORELATIONID = accountId, SERVICE_TYPE = "", TRANSACTION_NO = txid, OPERATOR_ID = "", STATUS = transtype, RES_CODE = transtype, RES_MSG = transtype, CALLBACK_DATETIME = DateTime.Now, CALLBACK_DATAUPDATE = false, CALLBACK_BY = "Multilink" }; db.TBL_API_CALLBACK_LOGS.Add(objapi); db.SaveChangesAsync(); return(Ok(new { message = transtype })); } catch (Exception ex) { return(Ok(new { message = 1 })); throw; } }