> ## 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, `null` 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`.

```kotlin KOTLIN theme={"dark"}
fun configure(completion: (PrimerInitializationData?, PrimerError?) -> Unit)
```

## Parameters

**Parameters**

**PrimerInitializationData?**

**Direct Subclasses**

**List\<RetailOutletsList>**

**Properties**

**result**

**properties**

**id** `String` *required*

**name** `String` *required*

**iconUrl** `String` *required*

**PrimerError?**

**Properties**

**errorId** `String` *required*

A unique error identifier.

**errorCode** `String?`

A unique error code.

**description** `String` *required*

A error description.

**recoverySuggestion** `String?`

A recovery suggestion for the given error. In case it's present, use it to try
to recover from error.

**diagnosticsId** `String` *required*

A unique diagnostics id for the given error.


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