You won't be able to do this with normal home grade network equipment. I've never seen this on home routers.
You can do this with Ubiquiti wifi access points(not too expensive small business grade equipment) and a PC running ubiquiti's Unifi software, or a Ubiquiti Dream Machine Pro router running Unifi Software or a cheap raspberry pi running unifi software.
Here's the guide on what it looks like:
https://help.ui.com/hc/en-us/articl...Guest-Network-Guest-Portal-and-Hotspot-System
You can set up a captive portal, where they have to click accept to proceed, or use a universal hotel password, or facebook wifi where they have to log into their facebook credentials, or you can do a voucher system.
Here's...