Credit Method



 
The Credit method increases the credit saved to the card.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("ACOS").Credit(amount)
Parameters
    amount Currency value that specifies the amount to add to the card.
Return Value
    None.
Remarks Examples
    The following example increases the credit saved to the card when the link is clicked.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function addamount()
    {
       SiteKiosk.Plugins("SiteCash").Devices("ACOS").Credit(10);
    }
    </SCRIPT>
    <a href="javascript:addamount();">Increase credit</a>
    

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

Back to top