Hi daniel27b25,
Welcome to the Apple Community.
Re: so how do you fix it
Wondering if you were signed in to the App Store with your Apple ID, as that is necessary,
and
if this is the first time you have tried to download an item from the App Store or iTunes.
you may need to have a payment method in your Apple ID, even if the download is free.
If you do not have an Apple ID::
How to create a new Apple ID – Apple Support
Check the payment methods that you can use:
(Scroll down to find your country or region)
Payment methods that you can use with your Apple ID - Apple Support
How to:
Change, add, or remove Apple ID payment methods - Apple Support
How to:
Get apps in the App Store on iPhone – Apple Support
After you have used the App Store or iTunes for the first time,
you can remove the payment method if you wish.
________________________________________
Troubleshooting:
If you can’t download or update apps on your iPhone or iPad - Apple Support
________________________________________
More info:
Apple ID support / help
Apple ID - Official Apple Support
App Store Support Website
Official Apple Support
All the best :-)