The major credit card companies have a service where they can notify the merchant of the new details when the card expires. I believe Visa calls it Account Updater.
https://articles.braintreepayments.com/guides/account-update...
https://articles.braintreepayments.com/guides/account-update...