files/en-us/web/api/paymentrequestevent/methoddata/index.md
{{SeeCompatTable}}{{APIRef("Web-Based Payment Handler API")}}{{AvailableInWorkers("service")}}
The methodData read-only property of the
{{domxref("PaymentRequestEvent")}} interface returns an array of
PaymentMethodData objects containing payment method identifiers for the
payment methods that the website accepts and any associated payment method-specific
data.
An array of PaymentMethodData objects. Each object contains the following properties:
supportedMethods
data
self.addEventListener("paymentrequest", (e) => {
console.log(e.methodData);
});
{{Specifications}}
{{Compat}}