there are no high quality plugins for this and with increase in demand for COD,. users pay a certain amount of advance payment in amount or percentage for cod order. this prevents fake orders and reduce RTO which is very crucial for any business. the problem is most of the plugins are not that high quality and a direct implementation will be best for xstore as there is no other theme that offers this.