Redeeming NX starts from the game's launcher or client. Log in, then click the Charge Account button in the top right corner.
You will be offered several options: game cards, online charge, mobile charge, and the earn-free route. Pick whichever matches what you have. Each behaves slightly differently, either opening a new tab or showing a panel within the same window.
For a game card, the process is the simplest. Scratch off the back, enter the code in the field provided, and confirm. Your NX balance updates once the code is accepted.
If a code is rejected, check that you have typed all characters correctly and that the card has not already been redeemed. Region matters too, since a card bought in one territory will not always work on an account registered elsewhere.