> ## 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

<Expandable title="Parameters" defaultOpen>
  <ResponseField name="paymentMethodType" type="String" required />

  <ResponseField name="supportedPrimerSessionIntents" type="[PrimerSessionIntent]" required>
    <Expandable defaultOpen={true} title="enum cases">
      <ResponseField name=".checkout">
        Use `checkout` when you want go through the checkout flow
      </ResponseField>

      <ResponseField name=".vault">
        Use `vault` when you want to vault a payment method, so you can use the token to pay another time.
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="paymentMethodManagerCategories" type="enum String" required>
    <Expandable defaultOpen={true} title="enum cases">
      <ResponseField name=".nativeUI" />

      <ResponseField name=".rawData" />
    </Expandable>
  </ResponseField>

  <ResponseField name="requiredInputDataClass" type="PrimerRawData.Type" post={["optional"]} />
</Expandable>
