<!--
{
  "availability" : [

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

# paymentMethod

The card used to complete a payment.

```
readonly attribute ApplePayPaymentMethod paymentMethod;
```

## Discussion

See [`ApplePayPaymentMethod`](/documentation/ApplePayontheWeb/ApplePayPaymentMethod). For privacy reasons, only the `type` property ([`ApplePayPaymentMethodType`](/documentation/ApplePayontheWeb/ApplePayPaymentMethodType)) is provided in most cases before the user authorizes the transaction.

This attribute is contained by the [`onpaymentmethodselected`](/documentation/ApplePayontheWeb/ApplePaySession/onpaymentmethodselected) event. Access this attribute using the event parameter in the callback function; for example, `var myPaymentMethod = event.paymentMethod;`.

---

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)