OnTransactionBegin Event



 
Fires when a transaction begins.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
    OnTransactionBegin = handler
    
Parameters
    ID Long value that contains the ID of the transaction.
    obj CreditCardInfo object that contains information about the card.
    cur Currency 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 top