Skip to main content

WiFi vouchers and prepaid hotspot passes

Sell prepaid WiFi access by scratch-card voucher or by M-Pesa STK push from the captive portal.

1 min readUpdated 2026-11-20Owner / AdminAccountant

Open CustomersWiFi Vouchers. Vouchers let people buy time on your hotspot without an account.

How vouchers work#

  • A voucher code looks like VCH-XXXX-XXXX. Codes are random and avoid confusing characters such as O, 0, I and 1 so scratch cards are not misread.
  • You can print a batch for cash sale at kiosks and shops.
  • Customers can also buy by STK push from the captive portal and receive access immediately.

Activation#

When someone redeems a voucher, Metron creates a hotspot user on the router. The name and password are the code, the allowed uptime equals the voucher's validity, and the first device used is bound to it.

If the router call fails, the voucher is not marked used, so nobody loses a paid pass to a technical fault.

Expiry#

A scheduled job runs every 5 minutes. It ends elapsed passes and removes their router users.

Setting up#

You need a hotspot configured on your router and the hotspot walled garden. See Hotspot (captive portal).

Something missing or wrong in this guide?WhatsApp usEmail feedback