See these articles
Change or remove your Apple ID payment information - Apple Support
They list the items that you must enter correctly in order to enter the payment details, and yes after a billing failure you will need to update your payment card info (even if the card itself is now again in good order)