CurrentBonus Property



 
The CurrentBonus property contains the spending that is relevant for the next bonus.


Syntax

    [double=] SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
              CurrentBonus
    
Possible Values
    Double value that retrieves the amount.

    The property is read only.
Remarks
    When this value reaches the limit, the user receives the bonus and this property is set to 0.
Examples
    The following example displays bonus information.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    if (SiteCafe.BonusActivated)
    {
       alert("Amount: " + SiteCafe.BonusAmount);
       alert("Limit: " + SiteCafe.BonusLimit);
       alert("Current spending: " + SiteCafe.CurrentBonus);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top