The Mexican government has a $60 billion dollar trade surplus with the United States. Another $25 billion in cash is sent to Mexico by people in the United States. That totals $85 billion dollars.
The wall might cost as much as ten billion.
If Mexico pays for the wall, they still have 75 billion dollars left over.
Or they could start a trade war, and have nothing.
What choice would you make?