---
title: applePay()
framework: intents
role: symbol
role_heading: Type Method
path: intents/inpaymentmethod/applepay()
---

# applePay()

Creates and returns a payment method object that represents payment through Apple Pay.

## Declaration

```swift
class func applePay() -> Self
```

## Discussion

Discussion Use this method to obtain a payment method object for Apple Pay.

## See Also

### Initializing a Payment Object

- [init(type:name:identificationHint:icon:)](intents/inpaymentmethod/init(type:name:identificationhint:icon:).md)
