We need to create an small modification to Opencart.
For some specific product option we can't accept one payment method (Cash on delivey - COD default opencart payment module).
What we need is to create one code to hide COD option on checkout if option value X is selected.
As we look this can be done on COD module and we can give some directions, we just don't know how to do it in PHP.