1. Login to the unifi controller and under settings choose Guest Control and enable Guest Portal option.

  2. Select Hotspot for the authentication type:

  3. Click on the Go to Hotspot Manager (bottom right corner) which takes you to a new window with voucher options.

  4. Choose the vouchers option on the left hand side then click on create vouchers:
  5. You can create vouchers based on your requirement: