# OnTransactionComplete Event Fires when a transaction is complete. Syntax
    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
    OnTransactionComplete = handler
Parameters
ID | Long value that contains the ID of the transaction.
errortxt | String that contains an error text if an error occurred.
scode | Scode value that describes the error or warning.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example shows information about the transaction when it is complete.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
    creditcard.OnTransactionComplete = OnTransactionComplete;
    function OnTransactionComplete(id, errortxt, scode)
    {
       alert("Transaction ID: " + id + ", error text: " + errortxt);
    }
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top