# OnTransactionFinished Event Fires when a credit transaction is finished. Syntax
    SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnTransactionFinished = h
Parameters
id | Long value that contains the transaction ID.
success | Boolean value that indicates if the transaction was successful.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example shows an alert window when a transaction has been processed.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
    smartcard.OnTransactionFinished = OnTransactionFinished;
    function OnTransactionFinished(id, success)
    {
       alert("Transaction " + id + " done, success: " + success);
    }
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top