All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
We have already stated in fatwa 131830 that the (work) visas that are granted to enter some countries are like a sponsorship. It is not permissible to take compensation for a sponsorship because it is a contract of Irfaaq (which is meant to provide relief) and not a contract of compensation, even if the gained fee is for the employer or otherwise.
At-Taaj wal-Ikleel reads, “It is not permissible to take a fee for any sponsorship...”
If the country forbids this, then the prohibition is even more confirmed.
The fatwa of the Standing Committee about earnings from the sale of visas reads, “That money is unlawful because it is in return for a sponsorship, which is one of the charity contracts, and it is also a lie, because it is contrary to the regulations established by the state for the public interest.”
However, if the one who does the procedures to issue the visa needs expenses, work, and travel, then he is entitled to take a fee according to the expenses that he spent to get the visa only. But for the visa to be a matter of compensation and trade, then this is not permissible.
Allah knows best.