Inpayment Method



 
The Inpayment method deposits an amount of a device.


Syntax

    SiteKiosk.Plugins("SiteCash").Inpayment(devname, amount)
    
Parameters
    devname String that contains the name of the device.
    amount Currency value that specifies the amount to deposit.
Return Value
    None.
Remarks
    This method must be called when the OnInpayment event fires.
Examples
    The following example deposits the amount when a device received credit.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Plugins("SiteCash").OnInpayment = OnInpayment;
    function OnInpayment(obj, amount)
    {
       SiteKiosk.Plugins("SiteCash").Inpayment(obj.ShortName, amount);
       alert("Deposit: " + amount);
    }
    </SCRIPT>
    

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

Back to top