Back to Content

PaymentRequest: payerName property

files/en-us/web/api/paymentresponse/payername/index.md

latest497 B
Original Source

{{securecontext_header}}{{APIRef("Payment Request API")}}

The payerName read-only property of the {{domxref("PaymentResponse")}} interface returns the name supplied by the user. This option is only present when the requestPayerName option is set to true in the options parameter of the {{domxref('PaymentRequest.PaymentRequest','PaymentRequest()')}} constructor.

Value

A string containing the payer name.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}