Configuring Prepaid function

Configuration files
  • ..\parameter\server\prepaidType.properties
  • ..\parameter\client\ui-translation_{language_country}.properties
  • ..\parameter\server\webServiceServerConfig.properties

To enable the selling of prepaid items via Stored Value Server, proceed as follows:

  1. Define the prepaid item providers and the prepaid items in the configuration file prepaidType.properties .
    In the file prepaidType.properties , define the following values:
    PrepaidTypeConfig.prepaidTypes.0.smId=1
    PrepaidTypeConfig.prepaidTypes.0.itemId=31100800
    PrepaidTypeConfig.prepaidTypes.0.providerCode=VODAFONE
    PrepaidTypeConfig.prepaidTypes.0.resourceId=PREPAID_LAYOUT1 
    The following table contains the descriptions of the parameters:
    Parameter Description
    smId Entry ID
    itemId Item number of the prepaid item
    providerCode Item number of the prepaid item
    resourceId Resource key of the prepaid receipt
  2. In the file ui-translation_{language_country}.properties , define the text to appear on the printed document.

    An entry in the file ui-translation_en_US.properties could look like as follows:

     prepaid.gkr.svs.adapter.resource.PREPAID_LAYOUT1=<BIG_BOLD>PREPAID Vodafone<BR><BR>PREPAID TOP UP RECEIPT {2} {4}<BR><BR><NORMAL_BOLD>YOUR PIN IS\:<BR><NORMAL_BOLD>{1}<BR><BR>SERIAL NO.\: {0}<BR>VALID UNTIL\: {3}<BR><BR>***<BR>INSTRUCTIONS FOR USE\:<BR>TO TOP UP YOUR MOBILE ACCOUNT\:<BR>PLEASE ENTER *101* AND FOLLOW THE<BR>INSTRUCTIONS OR CALL THE CUSTOMER<BR>SERVICE (1722) AT NO CHARGE.<BR><BR>EXCLUDED FROM EXCHANGE.<BR>***<BR>

    The following options are available for formatting the receipt text:

    Entry Description Example
    <BR> Line break <BR>INSTRUCTIONS FOR USE
    <NORMAL_BOLD> Normal font size, bold <NORMAL_BOLD>YOUR PIN IS
    <BIG_BOLD> Double font size, bold <BIG_BOLD>PREPAID Vodafone
  3. Set the prepaid server URL in the file webServiceServerConfig.properties . An entry may look like as follows:
    WebServiceServerConfig.Prepaid.adress=https\://gkr-heo1.qa.gk-software.com\:8443/app-svs/services/GkrHoGcsOnlineSaleWSFacade
Note:
Note that the PINs were imported with encryption to the Stored Value Server. If the item being bought is a prepaid item, a corresponding PIN is requested and printed on the receipt.