OutputResult Class

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

Namespace 

blng

OutputResult Methods 

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.

setIsSuccess(isSuccess) 

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

Signature 

global static void setIsSuccess(boolean isSuccess)

Parameters 

isSuccess: Type: boolean

Return Value 

Type: Void

isSuccess(isSuccess) 

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

Signature 

global static Boolean isSuccess

Return Value 

Type: Boolean

setErrorMessage(errorMessage) 

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

Signature 

global static void setErrorMessage(String errorMessage)

Parameters 

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

Return Value 

Type: void

getErrorMessage() 

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

Signature 

global static String getErrorMessage()

Return Value 

Type: String