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

# configure

Initialization data is provided by certain payment methods, which can include a bank list or a list of retail outlets.

This data plays a crucial role in configuring the initial state of the application and offering users a selection of options.

If the data is available, an instance of `PrimerInitializationData` will be returned; otherwise, `nil` will be returned.

Please refer to the following section to find the supported types of `PrimerInitializationData` that may be returned.

In case data cannot be obtained, Primer SDK will return `PrimerError`.

```swift SWIFT theme={"dark"}
func configure(completion: @escaping (PrimerInitializationData?, Error?) -> Void)
```

## Parameters

<Expandable defaultOpen title="Parameters">
  <ResponseField name="completion" type="(PrimerInitializationData?, Error?) -> Void">
    <Expandable defaultOpen title="Parameters">
      <ResponseField name="PrimerInitializationData">
        <Expandable defaultOpen title="Direct subclasses">
          <ResponseField name="RetailOutletsList">
            <Expandable defaultOpen title="Properties">
              <ResponseField name="result">
                <Expandable defaultOpen title="Properties">
                  <ResponseField name="id" type="String" required />

                  <ResponseField name="name" type="String" required />

                  <ResponseField name="iconUrl" type="URL" post={["Optional"]} />

                  <ResponseField name="disabled" type="Bool" required />
                </Expandable>
              </ResponseField>
            </Expandable>
          </ResponseField>
        </Expandable>
      </ResponseField>

      <ResponseField name="Error" type="PrimerError">
        <Expandable defaultOpen title="Properties">
          <ResponseField name="errorId" type="String" required>
            A unique error identifier.
          </ResponseField>

          <ResponseField name="description" type="String" required>
            The error description.
          </ResponseField>

          <ResponseField name="diagnosticsId" type="String" required>
            A unique diagnostics id for the given error.
          </ResponseField>

          <ResponseField name="recoverySuggestion" type="String">
            A recovery suggestion for the given error. In case it's present, use it to try
            to recover from error.
          </ResponseField>

          <ResponseField name="analyticsContext" type="String">
            Additional context for analytics purposes.
          </ResponseField>
        </Expandable>
      </ResponseField>
    </Expandable>
  </ResponseField>
</Expandable>
