Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The PaymentDetailsBase dictionary is a mixin used by the PaymentDetailsInit and PaymentDetailsUpdate dictionaries. It is never directly used by developers and is included here only to be used as the basis for those documents.


An array of PaymentItem objects, each describing one line item for the payment request. These represent the line items on a receipt or invoice.
An array of PaymentDetailsModifier objects, each describing a modifier for particular payment method identifiers. For example, you can use one to adjust the total payment amount based on the selected payment method ("5% cash discount!").
An array of PaymentShippingOption objects, each describing one available shipping option from which the user may choose.

Derived dictionaries

The following dictionaries include PaymentDetailsBase.

Provides payment information when calling the PaymentRequest() constructor.
Provides updated payment details while the payment user interface is being handled. This can be delivered to the payment interface using either PaymentDetailsUpdateEvent.updateWith() or by returning it from the optional detailsUpdate promise provided to the call that begins the user interaction.


Specification Status Comment
Payment Request API
The definition of 'PaymentDetailsBase' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support61 Yes551 No No ?
displayItems61 Yes551 No No ?
modifiers61 Yes551 No No ?
shippingOptions61 Yes551 No No ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No53 Yes551 No ?6.0
displayItems No60 Yes551 No ? No
modifiers No60 Yes551 No ? No
shippingOptions No60 Yes551 No ? No

1. From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Document Tags and Contributors

Contributors to this page: ExE-Boss, Sheppy
Last updated by: ExE-Boss,