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.
displayItems
Optional
PaymentItem
objects, each describing one line item for the payment request. These represent the line items on a receipt or invoice.modifiers
Optional
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!").shippingOptions
Optional
PaymentShippingOption
objects, each describing one available shipping option from which the user may choose.The following dictionaries include PaymentDetailsBase
.
PaymentDetailsInit
PaymentRequest()
constructor.PaymentDetailsUpdate
PaymentDetailsUpdateEvent.updateWith()
or by returning it from the optional detailsUpdate
promise provided to the PaymentRequest.show()
call that begins the user interaction.Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PaymentDetailsBase' in that specification. | Candidate Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 61 | Yes | 55
|
No | No | ? |
displayItems
|
61 | Yes | 55
|
No | No | ? |
modifiers
|
61 | Yes | 55
|
No | No | ? |
shippingOptions
|
61 | Yes | 55
|
No | No | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | 53 | Yes | 55
|
No | ? | 6.0 |
displayItems
|
No | 60 | Yes | 55
|
No | ? | No |
modifiers
|
No | 60 | Yes | 55
|
No | ? | No |
shippingOptions
|
No | 60 | Yes | 55
|
No | ? | No |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PaymentDetailsBase