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

**Parameters**

**intent** `string` *required*

Set the preferred session intent when showing the UI for the payment method.

**Properties**

**intent** `PrimerSessionIntent` *required*

**PrimerSessionIntent**

**PrimerSessionIntent.CHECKOUT**

**PrimerSessionIntent.VAULT**


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