In order to redeem the code follow the instruction below:
Log in to Battle.net Account Management.
Select the World of Warcraft license you want to manage.
Click Game Time & Subscriptions.
Select Redeem a Prepaid Card and click continue.
Enter the prepaid game-time code and click Claim Code.