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

```typescript TYPESCRIPT theme={"dark"}
    async configure(): Promise<void>
```

Configures an instance of `VaultManager`, which can then be used to:

* [fetch a list](/docs/sdk/react-native/v2.x.x/primer-headless-checkout/vault-manager/fetchVaultedPaymentMethods) of vaulted payment methods for the `customerId` attached to the [client session](/docs/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#body-customer-id)
* [delete](/docs/sdk/react-native/v2.x.x/primer-headless-checkout/vault-manager/deleteVaultedPaymentMethod) a vaulted payment method for the `customerId` attached to the [client session](/docs/api-reference/v2.4/api-reference/client-session-api/create-a-client-session#body-customer-id)
* [perform a payment](/docs/sdk/react-native/v2.x.x/primer-headless-checkout/vault-manager/startPaymentFlow) using a vaulted payment method and additional data (e.g. CVV)
* [validate](/docs/sdk/react-native/v2.x.x/primer-headless-checkout/vault-manager/validate) the additional data used to perform a payment (e.g. validate CVV)

## Returns

The `configure` method performs the configuration of the Vault Manager and returns a Promise of `void`.

## Example

```typescript TYPESCRIPT theme={"dark"}
import { VaultManager } from "@primer-io/react-native";

async function configureVaultManager() {
  try {
    let vaultManager = new VaultManager();
    await vaultManager.configure();
    console.log("Vault Manager configured successfully");
  } catch (error) {
    console.error("Error configuring Vault Manager:", error);
  }
}
```
