public void SetHeaderValues(string transactionType, SPDHMessageType messageType, SPDHMessageSubType subType, DateTime datetime, string terminalID, string employeeId) { Header.SetValue(HeaderEntryEnum.ProcessingFlag1, Formatting.HexStringToByteArray("")); Header.SetValue(HeaderEntryEnum.ProcessingFlag2, Formatting.ASCIIStringToByteArray("5")); Header.SetValue(HeaderEntryEnum.ProcessingFlag3, Formatting.HexStringToByteArray("")); Header.SetValue(HeaderEntryEnum.ResponseCode, Formatting.HexStringToByteArray("")); Header.SetValue(HeaderEntryEnum.TransactionCode, Formatting.ASCIIStringToByteArray(transactionType)); Header.SetValue(HeaderEntryEnum.CurrentDate, Formatting.ASCIIStringToByteArray(Formatting.ConvertDateToString(datetime, "yyMMdd"))); Header.SetValue(HeaderEntryEnum.CurrentTime, Formatting.ASCIIStringToByteArray(Formatting.ConvertDateToString(datetime, "HHmmss"))); Header.SetValue(HeaderEntryEnum.MessageType, new byte[] { (byte)messageType }); Header.SetValue(HeaderEntryEnum.MessageSubtype, new byte[] { (byte)subType }); Header.SetValue(HeaderEntryEnum.TerminalID, Formatting.ASCIIStringToByteArray(terminalID)); Header.SetValue(HeaderEntryEnum.EmployeeID, Formatting.ASCIIStringToByteArray(employeeId)); }