If the secretary of state deposits in the state treasury a fee that is not due or is in an amount exceeding the amount due the state, the fee or excess is subject to refund.