Please enable JavaScript to view this site.

CWT Software Configuration Handbook 4.40

Container        Path: <cwt><PAYUNIT><extendedproperties>
Element        Path: <cwt><PAYUNIT><extendedproperties><properties>

rebootWhen added or removed

Extended Properties are used to set general attributes for an external pay unit. Each property has two attributes “Name” and “Value”.

These properties will be transported directly to the external pay unit DLL and the DLL parses and uses the properties.

The name and value are set by the developer of the DLL.

Extended Properties for external pay units are available in both the cwtconfig.xml and the cwtid.xml. The properties in cwtid.xml are intended to be terminal specific and properties in cwtconfig.xml are of a more common nature. If the same attribute name is used in both files, the attribute in the cwtid.xml will override the attribute in the cwtconfig.xml.

Note:
Information on the correct names for the properties can be found in the description of the External Pay Unit

attributes

Name

Value:String
Description:Defines the name of the extended property

Type

Value:Static, Dynamic
Default:Static
Description:Dynamic means that it can read the value from a ticket Variable. This ticket variable will be read during extPu init and sent to the extPu.

See Example 3

Value

Value:String
Description:Defines the type of the external property

Example1

<PAYUNIT name="Ext0" type="CardCollector">
<extendedproperties>
  <properties name="hstServer1IP" value="172.021.013.103"/>
  <properties name="hstServer1Port" value="20000"/>
</extendedproperties>
</PAYUNIT>

Example2

This example shows extended properties for the External Pay Unit SIX. the name property values are in this case set in the DLL.

<PAYUNIT filename="extpu_six.dll">
  <extendedproperties>
    <properties name="PrintReceiptOnSuccess" value="Separate" />
    <properties name="PrintReceiptOnFailure" value="Ask" />
  </extendedproperties>
</PAYUNIT>

Example 3 - Using Dynamic type

<PAYUNIT name="Ext0" type="OnlinePaymentProvider" filename="OnlineParkingSession.d11" mustHaveInternet="true>
  <extendedproperties>
     <!-- Set cwoHostName in the extPu-Dll-->
     <properties name="Gateway" type="Dynamic" value="@v154"/>
     <!-- Next Collection Id for Ext4 (Coin/SCA) in a extPu-Dll -->
     <properties name="NextCollNbr" type="Dynamic" value="@v1577" />  
     <!-- Used to set PinPadId in a extPu-Dll -->
     <properties name="PinPadId" type="Dynamic" value="@v1610" />      
     <!-- Set ICCID in a extPu-Dll-->
     <properties name="SimCardId" type="Dynamic" value="@v1559" />    
     <!-- Purchase/ticket number in a extPu-Dll-->
     <properties name="PurchaseNbr" type="Dynamic" value="@v34" />    
     <!-- MAC address in a extPu-Dll-->
     <properties name="MacAddress" type="Dynamic" value="@v1581" />    
     <properties name="CWTTerminalId" type="Dynamic" value="@v33" />
  </extendedproperties>
</PAYUNIT>