GetCardBalance Method



 
The GetCardBalance method gets the current credit card balance.


Syntax

    [long=] SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
            GetCardBalance(obj)
    
Parameters
    obj CreditCardInfo object.
Return Value
    Returns a Long value that contains the transaction ID.
Remarks
    None.
Examples
    The following example gets the balance and shows it in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
    ccardinfo = creditcard.CreateCardInfo();
    creditcard.GetCardBalance(ccardinfo);
    alert(ccardinfo.Balance);
    </SCRIPT>
    

Applies to
    SiteKiosk v7.0 (and later versions).

Back to top