---
schema_version: "1"
id: 67107c23167757681eff26f02a164dd146ffa316810342af71ac5c4ef4eb563a
title: setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepayments_PostAuthorizationResponse_setAltPaymentMethodResponse.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationResponse_setAltPaymentMethodResponse.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5ec23007be1440ae7c76c045c14769f26a840ef6a31066868e7cc24edb467d30
description: Sets details from the gateway about the authorized alternative payment method.
---
# setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)

Sets details from the gateway about the authorized alternative payment method.

## Signature

global void setAlternativePaymentMethodResponse(commercepayments.AlternativePaymentMethodResponse paymentMethodResponse)

## Parameters

- **alternativePaymentMethodResponse**: Gateway response sent by payment gateway adapter for the alternative payment method request.

## Return Value

Type: void