---
schema_version: "1"
id: 5e7d37853514fa3796236971e7f111c07361989f591abbb003e4f3839230e411
title: CustomMetadataTypeInfo Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercepayments_CustomMetadataTypeInfo.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_CustomMetadataTypeInfo.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: db79f1ba3c8821a9d68b5f68a48961a292867132f9df6bb542fe7885910bc579
description: Access information about custom metadata. The PaymentGatewayAdapter can send CustomMetadataTypeInfo to transaction requests through the response object’s SalesforceResultCodeInfo.Constructor for providing custom metadata type information.
---
# CustomMetadataTypeInfo Class

Access information about custom metadata. The PaymentGatewayAdapter can send CustomMetadataTypeInfo to transaction requests through the response object’s SalesforceResultCodeInfo.

## 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.")

- **[CustomMetadataTypeInfo Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_CustomMetadataTypeInfo.htm#apex_commerce_payments_CustomMetadataTypeInfo_constructors)**
- **[CustomMetadataTypeInfo Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_CustomMetadataTypeInfo.htm#apex_commerce_payments_CustomMetadataTypeInfo_methods)**

## CustomMetadataTypeInfo Constructors

The following are constructors for CustomMetadataTypeInfo.

- **[CustomMetadataTypeInfo(cmtRecordId, cmtSfResultCodeFieldName)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_CustomMetadataTypeInfo.htm#apex_commerce_payments_CustomMetadataTypeInfo_ctor)**  
    Constructor for providing custom metadata type information.

### CustomMetadataTypeInfo(cmtRecordId, cmtSfResultCodeFieldName)

Constructor for providing custom metadata type information.

#### Signature

global CustomMetadataTypeInfo(String cmtRecordId, String cmtSfResultCodeFieldName)

#### Parameters

- **cmtRecordId**: Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.") ID of the matchedcustom metadata type record
- **cmtSfResultCodeFieldName**: Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.") Field that contains the Salesforce result code values. Belongs to the custom metadata type.

## CustomMetadataTypeInfo Methods

The following are methods for CustomMetadataTypeInfo.