You cannot Contract to do an illegal act. Doing so not only puts you at risk for legal action but also puts you in a position where you may not get paid
This is part of the problem right now with the disparity in cabanas laws between states and the federal government and why they cannot use bank accounts