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
CardCategory Enum
CardType Enum
NotificationStatus Enum
setPaymentMethodDetailsResponse(PaymentMethodDetailsResponsepaymentMethodDetails)
setCardPaymentMethodResponse(CardPaymentMethodResponsecardPaymentMethod)
setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)
setPaymentMethodTokenizationResponse(paymentMethodTokenizationResponse)
setGatewayAuthCode(gatewayAuthCode)
setAuthorizationExpirationDate(authExpDate)
setAsync(async)
RequestType Enum
SalesforceResultCode Enum
ExternalService Namespace
PlaceQuote Namespace
Slack Namespace
Newer Version Available
PostAuthorizationResponse Methods
Lists the methods for the PostAuthorizationResponse.
The following are methods for PostAuthorizationResponse.
-
setPaymentMethodDetailsResponse(PaymentMethodDetailsResponsepaymentMethodDetails)
Sets details from the gateway about the authorized payment method. -
setCardPaymentMethodResponse(CardPaymentMethodResponsecardPaymentMethod)
Sets details from the gateway about the authorized card payment method. -
setAlternativePaymentMethodResponse(AlternativePaymentMethodResponsealternativePaymentMethod)
Sets details from the gateway about the authorized alternative payment method. -
setPaymentMethodTokenizationResponse(paymentMethodTokenizationResponse)
Sets information from the gateway about the tokenized payment method. -
setGatewayAuthCode(gatewayAuthCode)
Sets the authorization code that the gateway returned. Maximum length of 64 characters. -
setAuthorizationExpirationDate(authExpDate)
Sets the expiration date of the authorization request. -
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.