---
schema_version: "1"
id: 9052f0eee0e403031f2c3f6e3de5fca8a1b2ff7c0ec3bbb4fcc9882e78b2f443
title: PostAuthorizationResponse Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercepayments_PostAuthorizationResponse.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_PostAuthorizationResponse.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 31622ad1e603785a5f7425b2fc99be45120bb19d13e8796a663e772e373b91f9
description: Response sent by the payment gateway adapter for a postauthorization service.
---
# PostAuthorizationResponse Class

Response sent by the payment gateway adapter for a postauthorization service.

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

## Usage

This class extends [AbstractTransactionResponse](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_class_commercepayments_AbstractTransactionResponse.htm). The constructor of this class takes no arguments. For example:

CommercePayments.PostAuthorizationResponse authr = new CommercePayments.PostAuthorizationResponse();

Contains information about the payment gateway’s response following an authorization transaction. The gateway adapter uses the payment gateway’s response to populate the PostAuthorizationResponse fields. The payments platform uses the information from this class to settle the transaction.

- **[PostAuthorizationResponse Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationResponse_methods.htm)**  
    Lists the methods for the PostAuthorizationResponse.