Dispatch ObjectThe Dispatch object represents the members defined in the SiteCash script file. Syntax
Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file.
The following example shows how to use members of the SiteCash script file notated above.
The next example shows the so-called pull mode, which allows you to set up charges on a Web site by using a script. This function lets you generate additional revenues on top of the turnover you achieve by charging rates on a per-minute basis by allowing you to charge one-time charges for certain services/Web sites. You can use this function to create your own list of services for which you want to charge one-time charges. For instance, some customers have used this function to charge their customers using SiteKiosk for making phone calls. In this example the Web site google.com will be opened provided a money value of 0.5 is deposited within 30 seconds. Since the function StartPullRequest is implemented in the file Sitekiosk\SiteCash\SiteCashScript.js, you can change and adjust it to fit your needs.
Back to top |