Debit Method



 
The Debit method decreases the amount of available credit.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").Debit(cur, bool)
    
Parameters
    cur Currency value that specifies the amount to subtract.
    bool Boolean value that specifies if the amount should be subtracted directly from the main account of the SiteCash object.
Return Value
    None.
Remarks Examples
    The following example decreases the credit of the script device account.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").Debit(5, false);
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top