NotificationSaveResult Class

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

CommercePayments

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();

commercepayments.NotificationSaveResult saveResult = commercepayments.NotificationClient.record(notification);

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.

  • getStatusCode()

    Gets the status code from the payment platform’s attempt to save the notification sent from the payment gateway.

  • isSuccess()

    Gets the status of whether the payment platform successfully saved the notification sent from the payment gateway.

Gets the error message, if any, from the payment platform regarding its attempt to save the notification sent from the payment gateway.

global String getErrorMessage()

Type: String

Gets the status code from the payment platform’s attempt to save the notification sent from the payment gateway.

global Integer getStatusCode()

Type: Integer

Gets the status of whether the payment platform successfully saved the notification sent from the payment gateway.

global Boolean isSuccess()

Type: Boolean