Item Method



 
The Item method returns one item of the collection.


Syntax

    [long=] SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
            AcceptedCards.Item(index)
    
Parameters
    index Long value that contains the item number to return.
Return Value
    Returns a Long value that represents the card type.

    0 = Unknown Card
    1 = Visa
    2 = MasterCard
    3 = AmericanExpress
    4 = DinersClub
    5 = Discover
    6 = JCB
Remarks
    Collection-index values are 1-based.

Examples
    The following example shows the name of one accepted card.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
    alert(creditcard.AcceptedCards.Item(1));
    </SCRIPT>
    

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

Back to topBack to top