Recipe: Show saved methods count
Recipe: List saved cards
How it works
- Listen for the
primer:vault:methods-updateDOM event - Access
vaultedPaymentsfrom the event detail - Use
.size()to get the count or.toArray()to iterate over methods - Each method contains
paymentMethodTypeandpaymentInstrumentDatawith card details