PaymentDetailsBase - Web APIs 编辑
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.
Properties
displayItems
Optional- An array of
PaymentItem
objects, each describing one line item for the payment request. These represent the line items on a receipt or invoice. modifiers
Optional- 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!"). shippingOptions
Optional- An array of
PaymentShippingOption
objects, each describing one available shipping option from which the user may choose.
Derived dictionaries
The following dictionaries include PaymentDetailsBase
.
PaymentDetailsInit
- Provides payment information when calling the
PaymentRequest()
constructor. PaymentDetailsUpdate
- 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 optionaldetailsUpdate
promise provided to thePaymentRequest.show()
call that begins the user interaction.
Specifications
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PaymentDetailsBase' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论