PaymentRequest: payerName 属性

可用性有限

此特性不是基线特性,因为它在一些最广泛使用的浏览器中不起作用。

安全上下文: 此功能仅在安全上下文(HTTPS)中可用,且支持此功能的浏览器数量有限。

payerNamePaymentResponse 接口的一个只读属性,它返回用户提供的姓名。只有在 PaymentRequest() 构造函数的 options 参数中将 requestPayerName 选项设置为 true 时,此属性才存在。

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

规范

规范
Payment Request API
# payername-attribute

浏览器兼容性