Choose Microsoft Store from the results to open the app. Select your account in the top-right corner of the screen, and then select Redeem code or gift cards. Enter the 25-character code, select Next, and then follow the prompts.