OnCardSwiped Event
Fires when the credit card is swiped.
Syntax
SiteKiosk.Plugins("SiteCash").Devices("CreditCard").
OnCardSwiped = handler
|
Parameters
Remarks
The object that caused the event can be referenced in the event function using "this".
Examples
The following example shows the last name of the owner in an alert window when the credit card is swiped.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
creditcard.OnCardSwiped = OnCardSwiped;
function OnCardSwiped(ccardinfo)
{
alert(ccardinfo.LastName);
}
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top