此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

PaymentRequest:payerName 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

PaymentResponse 接口的 payerName 只读属性返回用户提供的名称。只有当在 PaymentRequest() 构造函数的 options 参数中的 requestPayerName 选项设置为 true 时才会存在此选项。

包含付款人名称的字符串。

规范

Specification
Payment Request API
# payername-attribute

浏览器兼容性