Create a new SetupIntent with the updated card details.
SetupIntent
Attach the new paymentmethod to the customer.
paymentmethod
In the customer object, set the new paymentmethod to Default under invoice_settings.default_payment_method.
invoice_settings.default_payment_method
Saving Card Details: Saving card details without a payment (Stripe Docs)