Wi-Fi billing is used to control who can access your Wi-Fi and at what speed and for how long. It can also track payments.

02 Dec,2026, 6:18
Wi-Fi billing is used to control who can access your Wi-Fi and at what speed and for how long. It can also track payments.
Although it can seem as though this is just one piece of software, in fact a number of components communicate with each other.Â
The componentsÂ
There are a number of components in a billing system, and each performs a distinct role.
The customer’s device is either a phone or laptop. This is the device which wants to connect to the Internet. The router (or access point) manages and enforces the billing controls. At a hotspot, it also displays the login screen, which is viewed by customers prior to making a payment. This is commonly known as a captive portal.
RADIUS is used to determine if a customer should be allowed to connect to your WiFi. It is responsible for authentication, authorisation and accounting. Authentication identifies the customer. Authorisation details what the customer can do, including their time, speed and data allowance. Accounting tracks the activity taking place.
Billing software collects data. It holds information on customers, billing packages and associated costs. It also has data relating to payments, vouchers and sessions and generates invoices. As a result, it understands what a customer has purchased and when it expires.
Money is transferred using a payment service. Payments can be made using STK push, Paybill or Till. Communication occurs between your billing software and Safaricom. Safaricom in turn communicates with your billing software to relay the outcome of a payment.
Notifications and alerts can be sent using SMS, WhatsApp, or email. Customers can view their own data, billing package and payments using a customer portal. Sales, data and issues can all be analysed using a dashboard and reporting functionality.
Whilst different components can be hosted in different locations, generally the router will remain at your location. The RADIUS server and billing software can be located either within the router, on your computer or within a cloud service.Â
What happens when a hotspot customer buys a pass
Below is a summary of the process involved.
- A phone connects to your Wi-Fi and is issued with an IP address by your router.
- The phone then checks for an internet connection. The router sends the phone to the login screen, which is subsequently displayed.
- The customer selects a billing package and inputs their phone number.
- Your billing software collects data on this activity and attaches a unique identifier. It then requests that Safaricom initiates a payment request.
- A payment request is shown on the customer’s phone. The customer inputs their PIN.
- Safaricom relays this outcome to your billing server using a publicly available web address.
- Using the unique identifier, your billing server cross-references this information. It then verifies that the payment is for the correct package cost and updates the payment status. Duplicate outcomes are disregarded.
- Your billing software then configures the customer’s access. This will define a time limit, data allowance, speed and number of devices which can connect.
- Your router consults RADIUS to establish if a customer should be allowed to connect.
- RADIUS replies affirmatively and adds further details on the customer’s access controls.
- Your router then allows the customer to connect and applies these access controls.
- Throughout, and at the start and end of, a customer’s session, your router communicates with RADIUS by sending accounting information.
- Your billing software analyses this to analyse how much time and data has been consumed.
- Once either time or data has been fully utilised, your billing software terminates a customer’s session. Your router then denies further access.
- Post-payment, notification is provided to the customer. Alerts can also be issued close to a pass’s expiry date.
All of these actions are undertaken for specific reasons. The unique identifier enables payments to be traced. Verifying that the payment corresponds to the relevant package ensures that customers do not make underpayments and still receive access. Accounting information is analysed to understand how much time and data has been consumed. This is the only method by which time or data can be restricted.
Home customer
Similar processes occur for home customers but with a different method of customer recognition. Most small ISPs recognise customers via PPPoE. Every customer has their own username and password, which is typically held on their router. The router then automatically logs on each time it connects. Customers never view a login screen.
Every time your router connects, it queries the RADIUS server to determine if a customer’s account is current. The server analyses a customer’s billing package, cost and expiry date. If payments are up to date, then the server responds positively and conveys details of a customer’s speed and controls. However, if a customer’s account has expired and gone beyond its grace period, then the response is negative.
Your billing software holds information on when a customer’s account is due for payment. It also routinely produces bills. Notices, along with the bill itself, are generally communicated to customers pre-, on- and soon after their account’s due date, often via SMS and/or WhatsApp. Customers can then make payments for their account using Paybill, inputting their account number. Or they can perform an STK push payment. Your billing software then cross-references payments with accounts. It shifts customers’ account expiry dates and notifies them of the payment.
If a customer’s account is out of date, then their account is put on hold. Attempts to log on are denied. Further, a message is sent to your router requesting that it terminate an existing session. This ensures that a customer is disconnected at the appropriate time. Again, this message is transmitted from your server to your router. As many external internet connections do not provide a direct route into a network, this is usually done via a private tunnel. Following a customer’s payment, your system re-activates their account. Customers can then access the customer portal to review their data and payment history.
Router and RADIUS enforcement
Whereas the router does not have payment-related knowledge, it queries and then complies with RADIUS. For this reason, the router enforces the controls defined by RADIUS. These can relate to time, speed and data. Again, accounting information is important as the router conveys details of a customer’s activity. Your billing software can therefore analyse this information and compare it with a customer’s purchase.
For communication to occur between your router and server, certain parameters need to be correctly configured. Firstly, both parties must share a common secret, which is a lengthy password. Your router must also recognise the server’s address. The server must also recognise your router. Furthermore, addresses of the login and payment screens must be added to a ‘walled garden’ list so that these can be accessed by non-paying customers. It is also essential that accurate time is maintained on both the router and server, as this is important for passes and billing.
Communication can at times be disrupted between the router and server. During these periods, your router may be unable to query RADIUS, and so new customers may not be able to log on. Active sessions may continue depending on your configuration, although accounting information will be postponed. During this time, if customers make payments, then these are noted. Upon restoration of communication, your system will reactivate accounts. Ideally, you will receive prompt notification of communication disruption.
Dealing with issues
Billing systems must be able to manage issues. Well-designed systems are configured to do this.
Where payments are outstanding, rather than indefinitely, your billing system will query Safaricom for payment outcomes after a short period of time. Duplicate outcomes are dealt with once to avoid providing double passes. If a payment is for the incorrect account number, then it is noted on a list of unmatched payments for investigation. Where a payment is for the right account but communication with your router is not possible, your system will note that a payment has been made and will continually try to re-activate an account. A list of inactive, but paid, accounts highlights those awaiting re-activation.
Owner involvement
The owner does not run each step. The owner sets the rules and watches the results. You create the plans and set their prices, time, data and speed. You connect each router to the system, link your Paybill or Till, and choose the wording of messages. You choose the grace period and the cut-off rule. You look at the reports, deal with unmatched payments and unusual cases, and keep records.
Although a Wi-Fi billing system may appear complex, in reality each component performs a specific function. The login screen gathers information; the payment service facilitates money transfers; billing software collates data; RADIUS defines a customer’s controls and the router enforces these. Provided all components function effectively and data is consistent, customers are able to make payments, connect to the internet and be accurately disconnected without manual intervention being required.
Popular Posts
19 Oct,2026, 8:44