Got an iTunes Giftcard that iTunes doesn't want to recognize? Try using a direct URL to fix the problem. Pop the following URL into your favorite web browser after logging into your iTunes account. (Substitute the actual gift code for the YOURCODEHERE part.) The URL connects to iTunes and attempts to load the code by the "back door" so to speak.
Here's the magic URL, though make sure you enter it all on one line: