Basically, all you need to do is to add each user of your hotspot a comment (paid).
the script will look for each user’s comment, and if it don’t find it, it looks if the user is active, and if so, it removes it
forcing the user to log back in..
you can add a scheduler to run the script every 5 min, or whatever you want…
:local username
:local userunpd
:foreach i in=[/ip hotspot user find] do {
:set username ( username [ip hotspot user get $i name])
:if ([/ip hotspot user get [/ip hotspot user find name=$username] comment] != "paid") do {
:foreach j in=[/ip hotspot active find] do {
:set userunpd ( userunpd [ip hotspot active get $j user])
:if (username = userunpd) do {
[/ip hotspot active remove [/ip hotspot active find user=$userunpd]]
:log info "User $userunpd was removed from active list due to payment delay"
}}}}}