You can redeem a gift code within the game itself. Press the Friends button (with two people depicted on it) in the lower part of the game window. Then press the tab Gift code and enter the code you got in a pop-up window.
Have more questions? Submit a request