Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
NotificationSaveResult Class
Contains the result of the payment platform’s attempt to record data
from the gateway’s notification.
Namespace
Usage
This class is used with asynchronous payments. It is the return
type of the NotificiationClient.record operation and
contains the result of the payment platform’s attempt to save notification details.
The constructor of this class takes no arguments. For example:
CommercePayments.NotificationSaveResult nsr = new CommercePayments.NotificationSaveResult();Example
commercepayments.NotificationSaveResult saveResult =
commercepayments.NotificationClient.record(notification);
NotificationSaveResult Methods
The following are methods for NotificationSaveResult.
getErrorMessage()
Gets the error message, if any, from the payment platform regarding
its attempt to save the notification sent from the payment gateway.
Signature
global String getErrorMessage()
Return Value
Type: String
getStatusCode()
Gets the status code from the payment platform’s attempt to save the
notification sent from the payment gateway.
Signature
global Integer getStatusCode()
Return Value
Type: Integer
isSuccess()
Gets the status of whether the payment platform successfully saved the
notification sent from the payment gateway.
Signature
global Boolean isSuccess()
Return Value
Type: Boolean