Pull Mode - Debiting One-Time Charges by Script
This function lets you generate additional revenue on top of the turnover you achieve by charging rates on a per-minute basis by allowing you to charge one-time fees for certain services/websites. This feature is already used by default for the fees that are charged for services such as paid printing or paid downloads. Refer to the service rates for more information.
You can also use the scripting option presented here to add your own ways to charge one-time amounts for certain services. For instance, you could use this option to implement your own online shop.
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); |
The StartPullRequest function is implemented in the file SiteKiosk\SiteCash\SiteCashScript.js and can be modified to fit your requirements. The file SiteCashScript.js is loaded automatically when you launch SiteKiosk.
ATTENTION:
See also