---
schema_version: "1"
id: c8aff1d385a3192e124d41b8b6b5b70bcdba39ad2135161cb0f1df0df43ae71b
title: setGatewayResultCodeDescription(gatewayResultCodeDescription)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepay_PostAuthResp_setGatewayResultCodeDesc.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepay_PostAuthResp_setGatewayResultCodeDesc.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 16d0ef3b3f59205b3fdec12a8e07cc0c4ee6358a537d6e7057e1cd8673e5879a
description: Sets a description of the gateway-specific result code that a payment gateway returned. Maximum length of 1000 characters.
---
# setGatewayResultCodeDescription(gatewayResultCodeDescription)

Sets a description of the gateway-specific result code that a payment gateway returned. Maximum length of 1000 characters.

## Signature

public void setGatewayResultCodeDescription(String gatewayResultCodeDescription)

## Parameters

- **gatewayResultCodeDescription**:
    
    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.")
    
    Provides additional information about
    
    the result code and why the gateway returned the specific code. Descriptions will vary between different gateways.

## Return Value

Type: void