> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PaymentMethod

```swift SWIFT theme={"dark"}
class PrimerHeadlessUniversalCheckout.PaymentMethod
```

## Parameters

**Parameters**

**paymentMethodType** `String` *required*

**supportedPrimerSessionIntents** `[PrimerSessionIntent]` *required*

**enum cases**

**.checkout**

Use `checkout` when you want go through the checkout flow

**.vault**

Use `vault` when you want to vault a payment method, so you can use the token to pay another time.

**paymentMethodManagerCategories** `enum String` *required*

**enum cases**

**.nativeUI**

**.rawData**

**requiredInputDataClass** `PrimerRawData.Type`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.