private bool DoDepositComplete(MonMsg_G2H request, MonTgt_G2H_EFT_DepositComplete monDepositRequest) { InstallationDetailsForMSMQ installationDetails = ExCommsDataContext.Current.GetInstallationDetailsByDatapak(request.InstallationNo); HandlerHelper.Current.SaveSDTRequest(monDepositRequest.CardNumber, request.InstallationNo); Log.Info("TransactionID used in Deposit Request " + installationDetails.TransactionID.ToString()); string asset = HandlerHelper.Current.GetAssetByStockPrefix(request.Asset); DateTime transDate = DateTime.Now; //Authentication - To do DepositRequest depositRequest = new DepositRequest { //AccountType = monDepositRequest.ac, CashableFunds = Convert.ToInt32((monDepositRequest.CashableAmount * 100)), NonCashableFunds = Convert.ToInt32((monDepositRequest.NonCashableAmount * 100)), //Authentication = BarPosition = installationDetails.Bar_Pos_Name, CardNo = monDepositRequest.CardNumber, InstallationNo = request.InstallationNo, SlotIndex = installationDetails.Bar_Pos_Name, SlotNumber = asset, Stand = installationDetails.Bar_Pos_Name, TransactionDate = transDate.ToString("yyyyMMdd").PadLeft(8, '0'), TransactionID = installationDetails.TransactionID.ToString().PadLeft(3, '0').Substring(0, 3), TransactionTime = transDate.ToString("HHmmss").PadLeft(6, '0'), SiteCode = request.SiteCode }; HandlerHelper.PlayerGatewayInstance.DepositComplete(depositRequest, this.DepositCompleteResp); return(true); }
protected override bool ProcessG2HMessageInternal(MonMsg_G2H request) { using (ILogMethod method = Log.LogMethod("MonitorHandler_EPI_23_4", "ProcessG2HMessageInternal")) { try { MonTgt_G2H_EFT_DepositComplete monDepositRequest = request.Targets[0] as MonTgt_G2H_EFT_DepositComplete; if (monDepositRequest == null) { return(false); } //DeleteEPIMessage(request.InstallationNo); method.Info("Started Deposit Complete"); method.Info("Card Value: " + monDepositRequest.CardNumber); //Log.Info("Encrypted Pin XXXXXXXXXXXXXXXX"); if (DoDepositComplete(request, monDepositRequest)) { method.Info("Deposit Complete Transfer done"); } else { method.Info("Deposit Complete - Could not complete your transaction"); } return(true); } catch (Exception ex) { //EPIMsgProcessor.Current.SendEPIMessage(monBalanceResponse); //EPIMsgProcessor.Current.DisplayBallyWelcomeMsg(request.InstallationNo, ); method.Exception(ex); } return(false); } }