Apex Reference Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Release Notes
CommerceOrders Namespace
AccountType Enum
AccountHolderType Enum
BankType Enum
CardCategory Enum
CardType Enum
NotificationStatus Enum
PaymentMethodIdType Enum
setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)
setAmount(amount)
setAsync(async)
setAuthorizationExpirationDate(authExpDate)
setGatewayAuthCode(gatewayAuthCode)
setGatewayAvsCode(gatewayAvsCode)
setGatewayDate(gatewayDate)
setGatewayMessage(gatewayMessage)
setGatewayReferenceDetails(gatewayReferenceDetails)
setGatewayReferenceNumber(gatewayReferenceNumber)
setGatewayResultCode(gatewayResultCode)
setGatewayResultCodeDescription(gatewayResultCodeDescription)
setPaymentMethodDetails(paymentMethodDetails)
setPaymentMethodTokenizationResponse(paymentMethodTokenizationResponse)
setSalesforceResultCodeInfo(salesforceResultCodeInfo)
RequestType Enum
RetryCategory Enum
RetryDecision Enum
SalesforceResultCode Enum
StandardEntryClassCode Enum
ComplianceMgmt Namespace
Context Namespace
DataRetrieval Namespace
ExternalService Namespace
Flowtesting Namespace
IssueCreditMemo Namespace
ind_mfg_sample_mgmt_apex Namespace
IndustriesDigitalLending Namespace
InvoiceWriteOff Namespace
PlaceQuote Namespace
renew_assets_summary Namespace
RevSignaling Namespace
RevSalesTrxn Namespace
RulesAppln Namespace
runtime_industries_cpq Namespace
runtime_industries_insurance Namespace
Slack Namespace
PostAuthorizationResponse Methods
Lists the methods for the PostAuthorizationResponse.
The following are methods for PostAuthorizationResponse.
-
setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)
Sets details from the gateway about the authorized alternative payment method. -
setAmount(amount)
Sets the amount for payment authorization. Can be positive, negative, or zero. -
setAsync(async)
Sets whether the payment capture or authorization is asynchronous (True) or synchronous (False). If True, then the payment or payment authorization record created has a status of Pending. -
setAuthorizationExpirationDate(authExpDate)
Sets the expiration date of the authorization request. -
setGatewayAuthCode(gatewayAuthCode)
Sets the authorization code 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. -
setGatewayDate(gatewayDate)
Sets the date that the authorization occurred. Some gateways don’t send this value. -
setGatewayMessage(gatewayMessage)
Sets error messages that the gateway returned for the tokenization request. Maximum length of 255 characters. -
setGatewayReferenceDetails(gatewayReferenceDetails)
Sets any additional reference details that the gateway returned. -
setGatewayReferenceNumber(gatewayReferenceNumber)
Sets the reference number that the gateway returned. -
setGatewayResultCode(gatewayResultCode)
Sets a gateway-specific result code. The code may be mapped to a Salesforce-specific result code. Maximum length of 64 characters. -
setGatewayResultCodeDescription(gatewayResultCodeDescription)
Sets a description of the gateway-specific result code that a payment gateway returned. Maximum length of 1000 characters. -
setPaymentMethodDetails(paymentMethodDetails)
Sets details about the payment method. -
setPaymentMethodTokenizationResponse(paymentMethodTokenizationResponse)
Sets information from the gateway about the tokenized payment method. -
setSalesforceResultCodeInfo(salesforceResultCodeInfo)
Sets the Salesforce-specific result code information. Payment gateways have many response codes for payment calls. Salesforce uses the result code information to map payment gateway codes to a predefined set of standard Salesforce result codes.