---
schema_version: "1"
id: 12a0c5e5d441b52f4f98775cbf57d4d199b4ff6057197c1c87f321f3ceb7505d
title: CardCategory Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_commercepayments_CardCategory.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_commercepayments_CardCategory.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 60153588a192adfcad2b621b11b53d251a1fa3568649b3171adae8af9862f91b
description: Defines whether the payment method represents a credit card or a debit card.
---
# CardCategory Enum

Defines whether the payment method represents a credit card or a debit card.

## Namespace

[CommercePayments](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercepayments.htm "Use the CommercePayments namespace to provide a safe and customizable platform for managing customer payments and refunds.")

## Enum Values

The following are the values of the commercepayments.CardCategory enum.

| Value | Description |
| --- | --- |
| CreditCard | Shows that the payment method is a credit card. |
| DebitCard | Shows that the payment method is a debit card. |