> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/components/component-library/modular-checkout-components/modular-checkout-subcomponents-in-form/form-subcomponents-payment-method-selector-field.md).

# Form Subcomponents: Payment Method Selector Field

The Payment Method Selector Field subcomponent can only be used within the [Form component](/components/component-library/modular-checkout-components/component-checkout-form.md).

The Payment Method Selector Field provides a way for customers to select their payment method. This subcomponent should always be used with the [Payment Manager subcomponent](/components/component-library/modular-checkout-components/modular-checkout-subcomponents-in-form/form-subcomponents-payment-manager-field.md), which will capture the customer's payment information. These 2 subcomponents should be used instead of the [Payment Fields](/components/component-library/modular-checkout-components/modular-checkout-subcomponents-in-form/form-subcomponents-payment-field.md) subcomponent when you want to show data in between the selector and the payment input.

If you're using conditional subcomponents, the "Payment method selected" condition will use what the customer selects in this subcomponent.

<figure><img src="/files/zTvkx6qGFzZWJtCyu6gP" alt=""><figcaption></figcaption></figure>

*An example of payment methods listed in the Payment Method Selector Field subcomponent.*

### Props

| Prop Name                | Label                                  | Type    | Default Value                  | Description                                                                                                                                            |
| ------------------------ | -------------------------------------- | ------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| methodNotSelectedMessage | Invalid message if option not selected | string  | Please select a payment method | If *selectFirstPaymentType* is set to false, and user submits form without select option, this invalid message will display below the payment options. |
| selectFirstPaymentType   | Preselect First Payment Type           | boolean | false                          | Determines whether the first payment type should be selected by default.                                                                               |
| fieldClassName           | Class Name                             | string  | ""                             | The CSS class name for styling the field component                                                                                                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.limio.com/components/component-library/modular-checkout-components/modular-checkout-subcomponents-in-form/form-subcomponents-payment-method-selector-field.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
