SiteKiosk Documentation
One Step Back

Inpayment Method




The Inpayment method deposits an amount of a device.


Syntax

    SiteKiosk.Plugins("SiteCash").Inpayment(devname, amount)
    
Parameters
    devnameString that contains the name of the device.
    amountCurrency 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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -