Whenever any law which provides for fees or payments to a state agency does not authorize, as provided in this article, the refund of erroneous or excessive payments thereof, refunds may be made by the state agency which collected the fee or payment of any or all amounts received by the state agency in consequence of error, either of fact or of law, as to: