Paying for permit again?

Basically I was wondering, If you pay for your permit and take the test and fail. I know you can re take the test but do you have to pay for the test again?