Currently Gift Codes can only be bought via Amazon, Mojang no longer sells them directly. However, the website only links users to the US version of Amazon at the moment.
Here are a few alternative links for other countries (Please note that some Amazon pages include other countries as well):
North America:
- US: https://www.amazon.com/dp/B010KYDNDG/
- Canada: Unavailable
Europe:
- United Kingdom (not available to purchase for Republic of Ireland): https://www.amazon.co.uk/dp/B010KYDNDG/
- Germany (not available to purchase for Austria and Switzerland): https://www.amazon.de/dp/B010KYDNDG/
- France: https://www.amazon.fr/dp/B010KYDNDG/
- Italy (unavailable as of 18/04/20): https://www.amazon.it/dp/B010KYDNDG/
- Spain (unavailable as of 18/04/20): https://www.amazon.es/dp/B010KYDNDG/
- Turkey, Netherlands, Australia: Unavailable
Asia:
- Japan (unavailable as of 18/04/20): https://www.amazon.co.jp/dp/B010KYDNDG/
- Mainland China: Unavailable, the game is available from https://mc.163.com/ only
- India, Singapore, UAE: Unavailable
South America:
- Brazil: Unavailable
All other countries that do not have access to Amazon are currently unable to purchase gift codes. Please check if you can find a store that sells gift cards directly instead here: https://www.minecraft.net/en-us/redeem/#find-store