# ACOS Object The ACOS object controls the ACOS SmartCard device. Members Table The following table lists the members provided by the ACOS object.
Members
Objects | Description
CustomerData | Information about the card owner.
Properties | Description
Balance | Current credit on SmartCard.
Methods | Description
Credit | Increases the saved credit.
Debit | Decreases the saved credit.
IsCardInserted | Returns whether a SmartCard is inserted.
IsCardValid | Returns whether the inserted card is valid.
Events | Description
OnCardInserted | Fires when a card is inserted.
OnCardRemoved | Fires when a card is removed.
OnTransactionFinished | Fires when a transaction has been finished.
OnUserDataReady | Fires when user data has been read from the SmartCard.
Remarks This object is available through the collection Devices. Use the ACOS object to check for a SmartCard, to change the credit or to get or set information about the owner. This device can be activated in the SiteKiosk configuration. Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example determines if a SmartCard is inserted and shows it in an alert window.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
    alert(smartcard.IsCardInserted());
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top