You can apply and pay online in advance of your visit.
If you prefer, you can apply at Kings Cross or Colindale Hurricane Room. Just remember to bring your ID with you and complete your application before 10pm.