It is not simple. But Mexico depends upon the ability of people and goods to cross the border. If they want this to continue, it is not unreasonable that they should pay for it. Ways to do this? A tax on goods imported from Mexico? A special border-crossing fee on non-US citizens entering from Mexico?
The point being, if Trump were to say "I would impose a tax on all money transfers from the US to Mexico," he would at least be proposing a concrete policy to discuss. Saying "I'll make Mexico pay for the wall, because I say so" is just attention-grabbing rhetoric.
How about a surcharge on all those money transfers the illegals send to their home countries? Slap a hefty fee on those and use it to build a wall. Just a thought.