If you get a message -> Your purchase could not be completed, you need to update your payment method or add a new one.
Or add funds to your Apple ID balance as payment method: Add money to your Apple ID balance
Add money to your Apple ID balance – Apple Support (UK)
What you can buy with your Apple Gift Card or Apple ID balance
What you can buy with your Apple Gift Card or Apple Account balance – Apple Support (UK)
How to redeem your Apple Gift Card or App Store & iTunes gift card
How to redeem your Apple Gift Card or App Store & iTunes Gift Card – Apple Support (UK)
If you update your payment method or add funds to your Apple ID balance, It would take about 1 to 3 business days in order to process.
Then see -> Check your Apple ID balance
Check your Apple ID balance – Apple Support (UK)