Prepayments and deposits

When to ask for payment up front, how much to ask and what happens when a guest does not turn up.