Others already pointed out that both are a crime.
I'm not paying you to do X, but if you do X and then Y, I'll pay you.