DebitCard Method

The DebitCard method debits the credit card.


    SiteKiosk.Plugins("SiteCash").Devices("CreditCard").DebitCard(obj, am)
    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">
    function subamount()
       creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
       ccardinfo = creditcard.CreateCardInfo();
       transID = creditcard.DebitCard(ccardinfo, 2);
    <a href="javascript:subamount();">Debit</a>

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

Back to top