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

<Expandable title="Returns" defaultOpen>
  <ResponseField name="PrimerInputElementType[]" required>
    <ResponseField name="PrimerInputElementType">
      <Expandable defaultOpen title="cases">
        <ResponseField name="PrimerInputElementType.CARD_NUMBER" />

        <ResponseField name="PrimerInputElementType.CVV" />

        <ResponseField name="PrimerInputElementType.EXPIRY_DATE" />

        <ResponseField name="PrimerInputElementType.CARDHOLDER_NAME" />

        <ResponseField name="PrimerInputElementType.RETAIL_OUTLET" />

        <ResponseField name="PrimerInputElementType.PHONE_NUMBER" />

        <ResponseField name="PrimerInputElementType.OTP_CODE" />
      </Expandable>
    </ResponseField>
  </ResponseField>
</Expandable>
