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

# showPaymentMethod

Use this method to present the payment method user interface (UI) to the user.

```swift SWIFT theme={"dark"}
func showPaymentMethod(intent: PrimerSessionIntent)
```

## Parameters

<Expandable defaultOpen title="Parameters">
  <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>

## Throws

<Expandable defaultOpen title="Throws">
  <ResponseField name="unsupportedIntent">
    An exception that will be thrown in case method of the manager has been called using unsupported `intent`. Supported payment session intents for given payment method are returned in the onAvailablePaymentMethodsLoaded delegate.
  </ResponseField>
</Expandable>
