SiteKiosk Documentation
One Step Back

OnTransactionFinished Event




Fires when a credit transaction is finished.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnTransactionFinished = h
    
Parameters
    idLong value that contains the transaction ID.
    successBoolean 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 topVolver arriba

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