Skip to main content

<primer-vault-manager>

Displays saved payment methods for returning customers. Supports viewing, selecting, deleting, and paying with vaulted methods. Includes CVV recapture when required.

Quick Reference


Examples

Basic (auto-integrated)

When vault is enabled, appears automatically in the default layout:

Custom Layout

Include manually when using custom layouts:

Custom Submit Button

Button requirements: type="submit" or data-submit attribute.

External Submit Button

Note: bubbles: true and composed: true are required for shadow DOM traversal.

Configuration

Backend required: Your client session must be configured for vaulting. See Save Payment Methods.

Events

Emitted Events

Listened Events

Tracking Selection


Slots


States


Headless Mode

Build completely custom vault UI while retaining full functionality:

Headless Methods

Payment Data by Type


CSS Properties

Layout

Typography

Colors

Borders & Backgrounds

Delete Confirmation

Animation


Dependencies

Works with:

Usage Guidelines

Do

  • Enable vault in SDK options: vault: { enabled: true }
  • Configure client session on backend for vaulting
  • Use with <primer-show-other-payments> in custom layouts
  • Track selection state for custom submit buttons

Don’t

  • Don’t use without backend vault configuration
  • Don’t mix default UI with headless mode
  • Don’t forget to handle empty state UX

Content Guidelines

Delete confirmation

Empty state


See also

Save payment methods

Backend configuration

primer-show-other-payments

Collapse other methods

Events guide

Event handling patterns