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

# getRequiredInputElementTypes

Use this method to retrieve the input element types exposed by the payment method. Based on these input element types, you can build the user interface (UI).

```typescript TYPESCRIPT theme={"dark"}
async getRequiredInputElementTypes(): Promise<PrimerInputElementType[]>
```

## Returns

**Returns**

**PrimerInputElementType\[]** *required*

**PrimerInputElementType**

**cases**

**PrimerInputElementType.CARD\_NUMBER**

**PrimerInputElementType.CVV**

**PrimerInputElementType.EXPIRY\_DATE**

**PrimerInputElementType.CARDHOLDER\_NAME**

**PrimerInputElementType.RETAIL\_OUTLET**

**PrimerInputElementType.PHONE\_NUMBER**

**PrimerInputElementType.OTP\_CODE**


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