Fare type validation


The fare type validation feature provides an added element of security to the use of a particular fare type by enabling a field where the customer is required to input a particular expression in order to be able to purchase that fare type. This expression could be a a student identification number, for example.

To configure a fare type validation, navegate to Operations -> Fare Type and sekect +Add New/edit an existing fare type. Once on the Edit Fare Type screen, select the Requires extra use info checkbox.

FareTypeValidation0

Requires extra user info

Field label - Enter a label for the field. Ex. Student Number

Field hint - Enter a hint to accomapany the UI and assist the customer. "Its on the back of your student card!"

Field validation - Enter the code that was created using the Regex conventions. Ex. ^STGEO[0-9]{2}[a-z]{3}$

Valid example - Enter a valid example of what a code may be, following the Regex conventions. Ex. STGEO02ody

Faretypevalidation3

Save extra user input - If you check this box, the system will automatically save the information entered in the Validation box. You can access this information later through the Tickets Report, in the Extra Field, as shown below.

Faretypevalidation5

Extra user input mask - To protect your customer's information, you can set a mask that will hide certain characters from the user input. The rules for this have to be following the Regex conventions as well.

Faretypevalidation6

This is how your configuration will appear in the UI:

Faretypevalidation4

The last step in creating the fare type validation is to click and Save your progress.

Here is a short example of Regex conventions:

Consider:

  • ^STGEO[0-9]{2}[a-z]{3}$|^STSAN[0-9]{2}[a-z]
  • ^ is a constant in the expression
  • ^STGEO is a constant expressions
  • [0-9] a number between 0 to 9
  • [0-9]{2} any 2 numbers between 0-9
  • [a-z] a letter from a-z
  • [a-z]{3} any 3 letters between a-z
  • $ close the sequence
  • | and/or