# Update saved cards in the new Stripe Checkout

To save card information or update a customer's existing card, you can use the server-side Checkout integration together with [the Setup Intents API](https://stripe.com/docs/payments/setup-intents). By creating a session with `mode:setup`, the cardholder is immediately asked to authenticate the payment method if required, after which Stripe returns a `PaymentMethod` object. After that, you can attach the [payment method](https://stripe.com/docs/payments/payment-methods) to a customer.
