Newer Version Available

This content describes an older version of this product. View Latest

NotificationSaveResult Class

Contains the result of the payment platform’s attempt to record data from the gateway’s notification.

Namespace

CommercePayments

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