SiteKiosk Documentation
One Step Back

Pull Mode - Charging One-Time Charges By Script



The so-called pull mode allows you to set up charges on a website 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. Turn on this function in SiteKiosk's configuration tool under Services and specify, for example, how much you want to charge your customers for printing at your terminal.

As an alternative, you can also 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.

Look at the following example to understand how this function works:


function OnPullRequestCompleted(success)
{
	if (success) 
		window.location.href="http://www.google.com/";
}

SiteKiosk.Plugins("SiteCash").Script.Dispatch.StartPullRequest(
	"Navigation", 0.5, OnPullRequestCompleted, 30);

In this example, the website 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.

CAUTION!!
Please make sure to allow scripting for the HTML page. To do so, enter the page and the path to the page under ACCESS/URLs with scripting permission.

 


Back to topBack to top

© 1997-2011 PROVISIO - Aventura, USA & Muenster, Germany - SiteKiosk DevTeam