Guard against invalid payments.