Type Property



 
The Type property indicates how receipts should be delivered.


Syntax

    [long=] SiteKiosk.Plugins("SiteCash").ReceiptSettings.Type
Possible Values
    Long value that retrieves how receipts should be delivered.

    The property is read only.
Remarks
    The Type Property can return the following states:
    PRINT = 1;
    SEND_EMAIL = 2;
    
Examples
    The following example shows how to support different receipt deliveries.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCash = SiteKiosk.Plugins("SiteCash");
    
    PRINT = 1;
    SEND_EMAIL = 2;
    
    SiteCash.OnSessionEnd = OfferReceipt;
    
    function OfferReceipt()
    {
        switch (SiteCash.ReceiptSettings.Type)
        {
            case PRINT:
                if (confirm("Do you want to print a receipt?"))
                {
                    //Do printing here...
                }
                break;
            case SEND_EMAIL:
                if (confirm("Do you want to send a email receipt?"))
                {
                    //Do mailing here...
                }
                break;
        }
    }
    </SCRIPT>

Applies to
    SiteKiosk v7.2 (and later versions).

Back to top