Skip to main content
Display the number of saved payment methods or list saved cards for returning customers.

Recipe: Show saved methods count

Recipe: List saved cards

How it works

  1. Listen for the primer:vault-methods-update DOM event
  2. Access vaultedPayments from the event detail
  3. Use .size() to get the count or .toArray() to iterate over methods
  4. Each method contains paymentMethodType and paymentInstrumentData with card details

Variations

Save and display methods

Inline saved methods with card form

Conditional UI based on saved methods

See also

Vault manager component

SDK reference for saved payment methods

Events guide

Handle payment lifecycle events