It does not really wait. Thats just when their script to refund the money for failed transaction runs.^ but in my case, its tatkal. will irctc still wait for midnight to see if payment comes? becasue thats stupid and defeats the whole point of tatkal
if your payment failed - there is noway to retry and hence there is no way to book new ticket on same payment.