Hard question, one your lawyer might best answer. Nevertheless, if you follow this
link I believe the model language for 4-303(5) indicates you could have set a time as early as one hour after you opened on the day following the day the check was deposited for refusing to accept the stop payment.
However, since you did not, accepting the stop payment any time prior to the end of business on the following day was acceptable. Please check the language of the parallel section of the code in your state.