## Fetch Server Updates Used with the [Payment Element](/payments/payment-element.md). This method fetches updates from the associated [PaymentIntent](/api/payment_intents.md) or [SetupIntent](/api/setup_intents.md) on an existing instance of `Elements`, and reflects these updates in the Payment Element. This method returns a `Promise` which resolves with a result object. If this method succeeds, the result object will be empty. If this method fails, the result object will contain a localized error message in the `error.message` field. If the associated [PaymentIntent](/api/payment_intents) or [SetupIntent](/api/setup_intents) is in an unexpected status, the result object will also contain the intent's status in the `error.status` field. **Syntax:** `elements.fetchUpdates(...)` ### Fetch Server Updates ```js elements.fetchUpdates() .then(function(result) { // Handle result.error }); ``` ```es_next const {error} = await elements.fetchUpdates(); ```