Testmode Property
The Testmode property indicates if the testmode of the script device is enabled.
Syntax
[bool=] SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice").Testmode
|
Possible Values
Boolean value that retrieves if the testmode is enabled.
|
The property is read only.
Remarks
The testmode allows to modify the accounts of the SiteCash and ScriptDevice objects without paying, it can be enabled in the SiteKiosk configuration. If enabled, a payment dialog is shown in SiteKiosk.
Examples
The following example determines if the testmode is enabled and shows it in an alert window.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
scash = SiteKiosk.Plugins("SiteCash").Devices("ScriptDevice");
alert(scash.Testmode);
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top