If you belong to a religious federation (I do not think this is limited to the Swedish Church), your membership fee or however men of the cloth prefer to phrase things, is deducted straight through taxation. It's rather odd.
The Church of Sweden was the state church until 2000. As a remnant of that, they can still collect membership fees through the tax system. It is open to other churches as well.