The BillingPaymentMethodResource type represents a payment method for a checkout session.
Name cardTypeType null | stringDescription The brand or type of card. For example, 'visa' or 'mastercard'.
Name createdAt?Type null | DateDescription The date the payment method was created, if available.
Name expiryMonth?Type null | numberDescription The card expiration month, if available.
Name expiryYear?Type null | numberDescription The card expiration year, if available.
Name idType stringDescription The unique identifier for the payment method.
Name isDefault?Type booleanDescription Whether the payment method is set as the default for the account.
Name isRemovable?Type booleanDescription Whether the payment method can be removed by the user.
Name last4Type null | stringDescription The last four digits of the payment method.
Name makeDefaultType (params?: { orgId?: string; }) => Promise<null>Description A function that sets this payment method as the default for the account. Accepts the following parameters:
orgId? (string): The ID of the organization to set as the default.
Name pathRootType stringDescription The root path of the resource.
Name paymentType?Type "card"Description The type of payment method. For example, 'card'.
Name removeType (params?: { orgId?: string; }) => Promise<DeletedObjectResource >Description A function that removes this payment method from the account. Accepts the following parameters:
orgId? (string): The ID of the organization to remove the payment method from.
Name statusType "active" | "expired" | "disconnected"Description The current status of the payment method.
Name updatedAt?Type null | DateDescription The date the payment method was last updated, if available.
Name walletType?Type null | stringDescription The type of digital wallet, if applicable. For example, 'apple_pay', or 'google_pay'.
Last updated on Nov 14, 2025