Newer Version Available

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

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 truetrue (successful) or falsefalse (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