OutputResult Class

Stores and shows the results of the capture payment request made to the payment gateway.

blng

The following are methods for OutputResult.

  • setIsSuccess(isSuccess)

    Sets the results of the capture request gateway communication as either true (successful) or false (failed).

  • isSuccess(isSuccess)

    Shows whether the capture payment request was successful in the payment gateway.

  • setErrorMessage(errorMessage)

    Sets the error message following a failed payment capture request made to the payment gateway.

  • getErrorMessage()

    Returns the error message that the payment gateway sent following a failed capture payment request.

Sets the results of the capture request gateway communication as either true (successful) or false (failed).

global static void setIsSuccess(boolean isSuccess)

isSuccess: Type: boolean

Type: Void

Shows whether the capture payment request was successful in the payment gateway.

global static Boolean isSuccess

Type: Boolean

Sets the error message following a failed payment capture request made to the payment gateway.

global static void setErrorMessage(String errorMessage)

errorMessage: Type: String Error message containing information about the failed gateway communication. For information about the error message, see the documentation for your gateway.

Type: void

Returns the error message that the payment gateway sent following a failed capture payment request.

global static String getErrorMessage()

Type: String