Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The PaymentRequestUpdateEvent interface of the the Payment Request API enables a web page to update the details of a PaymentRequest in response to a user action.
Constructor
PaymentRequestUpdateEvent()Secure context- Creates a new
PaymentRequestUpdateEventobject.
Properties
None.
Methods
PaymentRequestUpdateEvent.updateWith()Secure context- Updates the details of an existing
PaymentRequest.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Payment Request API The definition of 'PaymentRequestUpdateEvent' in that specification. |
Candidate Recommendation | Initial definition. |
Browser Compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | 61 | ? | 561 | No | No | ? |
PaymentRequestUpdateEvent() constructor | 61 | ? | 561 | No | No | ? |
updateWith | 61 | ? | 561 | No | No | ? |
| Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
|---|---|---|---|---|---|---|---|
| Basic support | No | 52 | ? | 561 | No | ? | ? |
PaymentRequestUpdateEvent() constructor | No | 52 | ? | 561 | No | ? | ? |
updateWith | No | 52 | ? | 561 | No | ? | ? |
1. From version 56: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

