You need to have a payment method on file, even if the app you want to download is free, ->
Check which payment method you have on file
To verify your payment information:
Sign in to your Apple ID account page and edit / update your Apple ID details.
On the Sidebar click Payment methods -> then tap Payments Methods and tap Manage payment method.
Or -> Change, add or remove Apple ID payment methods
Change, add or remove Apple ID payment methods – Apple Support (UK)
- Add first the new card, then remove the old one.
See also -> Payment methods you can use with your Apple ID
Payment methods you can use with your Apple ID – Apple Support (UK)
You can also use your Apple ID balance as payment method: Add money to your Apple ID balance