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

# listRequiredInputElementTypes

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

```swift SWIFT theme={"dark"}
func listRequiredInputElementTypes(for paymentMethodType: String) -> [PrimerInputElementType]
```

## Returns

<Expandable defaultOpen title="">
  <ResponseField name="cardNumber" />

  <ResponseField name="expiryDate" />

  <ResponseField name="cvv" />

  <ResponseField name="cardholderName" />

  <ResponseField name="otp" />

  <ResponseField name="postalCode" />

  <ResponseField name="phoneNumber" />

  <ResponseField name="retailer" />

  <ResponseField name="unknown" />
</Expandable>
