# Update card details with a SetupIntent

1. [Create a new](https://stripe.com/docs/api/setup_intents) `SetupIntent` with the updated card details.
1. [Attach](https://stripe.com/docs/api/payment_methods/attach) the new `paymentmethod` to the customer.
1. In the customer object, set the new `paymentmethod` to **Default** under `invoice_settings.default_payment_method`.
## Additional Information
* [Saving Card Details: Saving card details without a payment](https://stripe.com/docs/payments/cards/saving-cards#saving-card-without-payment) (Stripe Docs)
