The BillingPaymentMethodResource
type represents a payment method for a checkout session.
Name cardType
Type string
Description The brand or type of card. For example, 'visa'
or 'mastercard'
.
Name id
Type string
Description The unique identifier for the payment method.
Name isDefault
Type boolean
Description Whether the payment method is set as the default for the account.
Name isRemovable
Type boolean
Description Whether the payment method can be removed by the user.
Name last4
Type string
Description The last four digits of the payment method.
Name makeDefault
Type (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 pathRoot
Type string
Description The root path of the resource.
Name paymentType
Type "link" | "card"
Description The type of payment method. For example, 'card'
or 'link'
.
Name remove
Type (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 status
Type "active" | "disconnected" | "expired"
Description The current status of the payment method.
Name walletType
Type undefined | string
Description The type of digital wallet, if applicable. For example, 'apple_pay'
, or 'google_pay'
.
Last updated on Oct 15, 2025