Element path: <cwt><PAYMENTSERVICE><textInputTransformation>
Code input normalization for top up substitute source strings to a specified string; this allows the top up module to standardize invalid user inputs. For example, if a user enters an O (character) instead of a 0 (digit), the system will be able to match the current purchase to the previous purchase for top up. Note that the code input is normalized only for the top up validation and not for the purchase itself or for the printed ticket.
The normalization feature is optional and only available if top up is enabled.
The attributes are customizable in the cwtconfig as follows:
attribute
enableForCode
Value: | true / false |
Default: | false |
Description: | true = normalize code input for the top up process. |
Element path: <cwt><PAYMENTSERVICE><textInputTransformation><treatAsSameChar>
attributes
Char1
Value: | One single character or digit |
Default: | - |
Description: | The character or digit to replace |
Char2
Value: | One single character or digit |
Default: | - |
Description: | The replacing character or digit |
Example: | <PAYMENTSERVICE> <textInputTransformation enableForCode="false"> <treatAsSameChar char1="1" char2="I"/> <treatAsSameChar char1="0" char2="O"/> <treatAsSameChar char1="2" char2="Z"/> </textInputTransformation> </PAYMENTSERVICE> |