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

```typescript TYPESCRIPT theme={"dark"}
async showPaymentMethod(intent: PrimerSessionIntent): Promise<void>
```

<Expandable title="Parameters" defaultOpen>
  <ResponseField name="intent" type="string" required>
    Set the preferred session intent when showing the UI for the payment method.
  </ResponseField>
</Expandable>

<Expandable title="Properties" defaultOpen>
  <ResponseField name="intent" type="PrimerSessionIntent" required>
    <Expandable title="PrimerSessionIntent" defaultOpen>
      <ResponseField name="PrimerSessionIntent.CHECKOUT" />

      <ResponseField name="PrimerSessionIntent.VAULT" />
    </Expandable>
  </ResponseField>
</Expandable>
