You pay a fee for your work permit application. The money is not refunded if your application is rejected.
For more information about the fees, please see this page.