If one wire goes to the Common Terminal and the other wire goes to the Voltage Terminal, it doesn't matter which wire goes to which terminal. Fix all your wires before you mount the transformer.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.