Configuring the MICR

Configuration files
  • ..\parameter\client\hal.properties
  • ..\parameter\client\jpos.xml
  • ..\parameter\client\flow\checkPaymentConfigs.properties
  • ..\parameter\client\reports\default\check_payment.xml

To configure the MICR device, proceed as follows:

  1. Enable the MICR device in the configuration file hal.properties:
    DeviceEntryTypes.MicChequeReader.id=MICR1
     DeviceEntryTypes.MicChequeReader.descriptionKey=device.entry.virtual.micchequereader
    DeviceEntryTypes.MicChequeReader.description=Mic cheque reader
     DeviceEntryTypes.MicChequeReader.deviceCategory=MIC_CHEQUE_READER
    DeviceEntryTypes.MicChequeReader.enabled=true
    DeviceEntryTypes.MicChequeReader.active=true
     DeviceEntryTypes.MicChequeReader.className=com.gk_software.pos.hal.device.mic_cheque_reader.MicChequeReader
  2. Set the MICR device as the default MICR.
     DeviceMappingEntryTypes.DefaultMicChequeReader.id=DefaultMicChequeReader
     DeviceMappingEntryTypes.DefaultMicChequeReader.deviceCategory=MIC_CHEQUE_READER
     DeviceMappingEntryTypes.DefaultMicChequeReader.mappedTo=MICR1
Note:
A corresponding entry must exist in the file jpos.xml. The logicalName corresponds to the id of the MICR entry resulting from the file hal.properties.
To print on a check, set the configuration in the file checkPaymentConfigs.properties as follows:
CheckPaymentConfigs.Default.useMICR=true
CheckPaymentConfigs.Default.printCheck=true

Which information is printed on the check depends on the values set in the configuration file check_payment.xml.