Skip to main content
PaymentMethod objects represent your user’s payment instruments. You can use them with any of the Crossmint products like Checkout, Onramp, and Offramp.

Type Values

type names the account identifier (the capture schema Crossmint collects and validates) — never the payment rail, scheme, or clearing house. The same saved account can be paid over multiple rails; rail selection happens at payment execution time.
ValueDescription
cardCredit or debit card.
bank-account-usUS bank account (routing number + account number).
bank-account-mx-clabeMexican bank account, identified by an 18-digit CLABE.
bank-account-coColombian bank account (bank code + account number + national document).
bank-account-sepa-ibanBank account identified by an IBAN within the supported SEPA scope.

Attributes

paymentMethodId
string
required
Unique identifier for the payment method.
default
boolean
required
Whether this is the user’s default payment method.
displayName
string
required
Human-readable label for the payment method (e.g. "Visa ••1111", "Chime ••6259").
type
string
required
Payment method type. One of card, bank-account-us, bank-account-mx-clabe, bank-account-co, or bank-account-sepa-iban.
card
object
Card details. Present when type is card.
bankAccount
object
Bank account details. Present when type is bank-account-us, bank-account-mx-clabe, bank-account-co, or bank-account-sepa-iban.
{
  "paymentMethodId": "d4e5f6a7-b8c9-0123-def4-567890abcdef",
  "default": true,
  "displayName": "Visa ••1111",
  "type": "card",
  "card": {
    "brand": "visa",
    "last4": "1111",
    "expiration": {
      "month": "12",
      "year": "2028"
    },
    "billing": {
      "name": "Alice Smith",
      "phone": "+12125551234",
      "address": {
        "line1": "123 Main St",
        "city": "Springfield",
        "stateOrRegion": "IL",
        "postalCode": "62701",
        "country": "US"
      }
    },
    "fundingType": "debit",
    "bin": "411111",
    "country": "US"
  }
}