---
title: paymentMethod
framework: applepayontheweb
role: symbol
role_heading: Instance Property
path: applepayontheweb/applepaypaymentmethodselectedevent/paymentmethod
---

# paymentMethod

The card used to complete a payment.

## Declaration

```data
readonly attribute ApplePayPaymentMethod paymentMethod;
```

## Discussion

Discussion See ApplePayPaymentMethod. For privacy reasons, only the type property (ApplePayPaymentMethodType) is provided in most cases before the user authorizes the transaction. This attribute is contained by the onpaymentmethodselected event. Access this attribute using the event parameter in the callback function; for example, var myPaymentMethod = event.paymentMethod;.
