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

ValueDescription
cardCredit or debit card.
bank-account-usUS bank account. Used to receive and send USD payments.
bank-account-mxSPEI for Mexican bank accounts (18-digit CLABE).
bank-account-coPSE for Colombian bank accounts.
sepaSEPA transfers for SEPA-area bank accounts.

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, bank-account-co, or sepa.
card
object
Card details. Present when type is card.
bankAccount
object
Bank account details. Present when type is bank-account-us, bank-account-mx, bank-account-co, or sepa.
{
  "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"
  }
}