SiteKiosk Documentation
One Step Back

OnTransactionBegin Event




Fires when a transaction begins.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
    OnTransactionBegin = handler
    
Parameters
    IDLong value that contains the ID of the transaction.
    objCreditCardInfo object that contains information about the card.
    curCurrency value that contains the amount to transact.
Remarks
    Use the CurrencyFormatter object for currency functionality.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows the transaction value in an alert window when a transaction begins.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
    creditcard.OnTransactionBegin = OnTransactionBegin;
    function OnTransactionBegin(id, ccardinfo, amount)
    {
       alert("Transaction value: " + amount);
    }
    </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 -