kit.paymentMethods manages the cards and bank accounts saved against a Stripe customer: listing them, attaching or detaching them, marking one as default, and setting up new ones for future use.| Method | Description |
|---|---|
list() | List a customer's saved payment methods. |
attach() | Attach an existing payment method to a customer. |
detach() | Remove a payment method from a customer. |
setDefault() | Mark a payment method as the customer's default. |
createSetupIntent() | Start a Stripe Elements flow to save a new card without charging it. |
sync() | Re-pull a customer's payment methods and persist them via your storage adapter. |
KitPaymentMethodRecord shapebrand, last4, expMonth and expYear are populated for card payment methods. For sepa_debit, only last4 is populated. For any other payment method type, all four fields are null.