SiteKiosk Documentation
One Step Back

OnTransactionComplete Event




Fires when a transaction is complete.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
    OnTransactionComplete = handler
    
Parameters
    IDLong value that contains the ID of the transaction.
    errortxtString that contains an error text if an error occurred.
    scodeScode 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 topVolver arriba

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