<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/PaymentMethodChangeEvent/methodName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "instp/PaymentMethodChangeEvent/methodName"
  },
  "title" : "methodName"
}
-->

# methodName

The identifier for the payment method to use for the transaction.

```
readonly attribute DOMString methodName;
```

## Discussion

The [`methodName`](/documentation/ApplePayontheWeb/PaymentMethodChangeEvent/methodName) for Apple Pay transactions is the Apple Pay URL.

For more information, see [W3C payment method identifiers (PMIs)](https://www.w3.org/TR/payment-method-id/#dfn-pmi).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)