You just have to add an IF statement to skip the payment code under that circumstance. I don't really have enough details to tell you exactly what to do, but it shouldn't be too hard to pull off. You need to be able to identify those orders and then skip the payment code in that case.