If you want to purchase a download game through the official Nintendo website, you must first login with your Nintendo Account.
Once you initiate the purchase process, you will be asked to login with your Nintendo Account. After logging in with your Nintendo Account, you will be able to review the details of the product and complete the purchase on the final purchase confirmation screen.
If you have forgotten your Nintendo Account password, you can request a temporary one on the Nintendo Account website.
© 2017 Nintendo.