You pay a fee for your residence permit application. The money is not refunded if your application is rejected.
Please find the fees here
If you are applying online, you pay with a credit card or a bank card.
If you are applying on a paper form, the fee must be paid by the applicant to the Embassy account (9030006358003), at any Stanbic Bank Branch.
Each applicant must fill out one payment slip where full name of the applicant should be clearly stated.
Once a payment has been made the bank receipt is to be submitted at the Embassy together with the application.
Some people are not required to pay for their applications, including the following:
More about fees and exemptions on the Swedish Migration Board website
You may also be required to pay a fee for your studies. This is decided by each respective university or university college. Contact the school concerned for information.