CardType Property
The CardType property contains the type of the credit card.
Syntax
SiteKiosk.Plugins("SiteCash").Devices("CreditCard").CardType [=long]
|
Possible Values
Long value that specifies or retrieves the type.
|
The property is read/write.
Remarks
0 = Unknown Card
1 = Visa
2 = MasterCard
3 = AmericanExpress
4 = DinersClub
5 = Discover
6 = JCB
Examples
The following example shows the credit card type in an alert window.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
ccardinfo = creditcard.CreateCardInfo();
alert(ccardinfo.CardType);
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top