---
schema_version: "1"
id: a8841a92b28889389735c641e9000c0193012390d6dce803dcfb13f525479be4
title: setGatewayAvsCode(gatewayAvsCode)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepayments_PostAuthorizationResponse_setGatewayAvsCode.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationResponse_setGatewayAvsCode.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2ac4860fac99c8904b7876c90f03982446233ccdfd86dd9a615f0ca7e330ba46
description: Sets the AVS (address verification system) result code information that the gateway returned. Maximum length of 64 characters.
---
# setGatewayAvsCode(gatewayAvsCode)

Sets the AVS (address verification system) result code information that the gateway returned. Maximum length of 64 characters.

## Signature

public void setGatewayAvsCode(String gatewayAvsCode)

## Parameters

- **gatewayAvsCode**:
    
    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.")
    
    Used to verify
    
    the address mapped to a payment method when the payments platform requests tokenization from the payment gateway.

## Return Value

Type: void