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

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

```typescript TYPESCRIPT theme={"dark"}
async configure(options: RawDataManagerProps): Promise<{ initializationData: PrimerInitializationData } | void>
```

## Parameters

<Expandable title="Parameters" defaultOpen>
  <ResponseField name="RawDataManagerProps">
    <Expandable title="Properties" defaultOpen>
      <ResponseField name="paymentMethodType" type="string" required />

      <ResponseField name="onMetadataChange" type="(metadata: any) => void" />

      <ResponseField name="onValidation" type="(isValid: boolean, errors: PrimerError[] | undefined) => void" />
    </Expandable>
  </ResponseField>
</Expandable>
