DebitCard Method



 
The DebitCard method debits the credit card.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").DebitCard(obj, am)
Parameters
    obj CreditCardInfo object that provides information about the used card.
    am Currency value that specifies the amount to subtract from the card.
Return Value
    Returns a Long value that contains the ID of the transaction.
Remarks Examples
    The following example subtracts an amount from the credit card.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function subamount()
    {
       creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
       ccardinfo = creditcard.CreateCardInfo();
       transID = creditcard.DebitCard(ccardinfo, 2);
    }
    </SCRIPT>
    <a href="javascript:subamount();">Debit</a>
    

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

Back to top