Question: how to buy minecraft java edition with a gift card?
Answer: Log in to your account at www.mojang.com. You will be taken to your account page (Figure 4.4).
Click the Redeem Gift Code or Prepaid Card button.
Enter your code, click the Redeem button, and you are ready to create your Minecraft profile.