An issue like this is not a matter of programming; it is a matter of state and federal tax law, combined with company policy. The best way to solve this is to ask your customers what their taxation policy is and implement their protocol. That way, when there is a tax dispute, it is not your problem, it is theirs.