TS
showVaultManager(
  clientToken: string,
  options: VaultManagerOptions
): Promise<PrimerVaultManager>

Show the vault at the specified container, and get an instance of PrimerVaultManager, which is used to manage the customer’s payment methods stored in the Primer Vault.

Parameters

Returns

Example

TS
import { Primer } from "@primer-io/checkout-web";

const clientToken = "YOUR_CLIENT_TOKEN";

async function showVaultManager() {
  const primerVaultManager = await Primer.showVaultManager(clientToken, {
    container: "#my-element",
    // other options...
  });
}