Configuring MSR Interpretation
| Configuration files |
|
When using MSR, scanned data is transferred to the component for magnetic card data processing (MSR processor). The configuration is set in the file msrProcessor.properties :
The MSR processor searches the file msrProcessor.properties for entries matching the scanned data. If a corresponding configuration is found, the functions defined in this configuration will be called, and the defined parameters will be transferred to these functions.
MsrProcessorConfig.msrs.5.id=6
MsrProcessorConfig.msrs.5.name=Loyalty card
MsrProcessorConfig.msrs.5.templates.0.track=1
MsrProcessorConfig.msrs.5.templates.0.name=prefix
MsrProcessorConfig.msrs.5.templates.0.value=60884
MsrProcessorConfig.msrs.5.templates.0.index=0
MsrProcessorConfig.msrs.5.posStates.0.id=1
MsrProcessorConfig.msrs.5.posStates.0.processName=CustomerRegistration
MsrProcessorConfig.msrs.5.posStates.1.id=2
MsrProcessorConfig.msrs.5.posStates.1.processName=ItemRegistration
MsrProcessorConfig.msrs.5.posStates.2.id=3
MsrProcessorConfig.msrs.5.posStates.2.processName=Payment
MsrProcessorConfig.msrs.5.actions.0.processReactions.0.processName=Payment
MsrProcessorConfig.msrs.5.actions.0.processReactions.0.reactionName=customerRegistration
MsrProcessorConfig.msrs.5.actions.0.processReactions.1.processName=ItemRegistration
MsrProcessorConfig.msrs.5.actions.0.processReactions.1.reactionName=customerRegistration
MsrProcessorConfig.msrs.5.actions.0.processReactions.2.processName=CustomerRegistration
MsrProcessorConfig.msrs.5.actions.0.processReactions.2.reactionName=REINIT
MsrProcessorConfig.msrs.5.actions.0.configId=CustomerRegistrationConfigs.CustomerRegistrationBonusCard
MsrProcessorConfig.msrs.5.actions.0.configParameters.0.track=1
MsrProcessorConfig.msrs.5.actions.0.configParameters.0.name=customerOperationConfig.customerId
MsrProcessorConfig.msrs.5.actions.0.configParameters.0.patternStart=5
MsrProcessorConfig.msrs.5.actions.0.configParameters.0.patternEnd=14
MsrProcessorConfig.msrs.5.actions.0.configParameters.0.trimZeroesLeft=true
MsrProcessorConfig.msrs.5.actions.0.id=1
Unlike scanning, the number of the track where data to be scanned is located (track 1 to 4 are possible) is specified for the configuration.