TransactionResult Class

Holds the result of the transaction.

Namespace 

blng

TransactionResult Methods 

The following are methods for TransactionResult.

setResponseCodeMessage(responseCodeMessage) 

Sets ResponseCodeMessage.

Signature 

global void setResponseCodeMessage(String responseCodeMessage)

Parameters 

responseCodeMessage: Type: String

Return Value 

Type: void

getResponseCodeMessage() 

Gets ResponseCodeMessage.

Signature 

global String getResponseCodeMessage()

Return Value 

Type: String

setCardCodeResponse(cardCodeResponse) 

Sets CardCodeResponse.

Signature 

global void setCardCodeResponse(String cardCodeResponse)

Parameters 

cardCodeResponse: Type: String

Return Value 

Type: void

getCardCodeResponse() 

Gets CardCodeResponse.

Signature 

global String getCardCodeResponse()

Return Value 

Type: String

setCustomerProfileToken(customerProfileToken) 

Sets customerProfileToken.

Signature 

global void setCustomerProfileToken(String customerProfileToken)

Parameters 

customerProfileToken: Type: String

Return Value 

Type: void

getCustomerProfileToken() 

Gets CustomerProfileToken.

Signature 

global String getCustomerProfileToken()

Return Value 

Type: String

setPaymentToken(paymentToken) 

Sets PaymentToken.

Signature 

public void setPaymentToken(String paymentToken)

Parameters 

paymentToken: Type: String

Return Value 

Type: void

getPaymentToken() 

Gets PaymentToken.

Signature 

global String getPaymentToken()

Return Value 

Type: String

setResponseStatus(responseStatus) 

Sets ResponseStatus.

Signature 

global void setResponseStatus(String responseStatus)

Parameters 

responseStatus: Type: String

Return Value 

Type: void

getResponseStatus() 

Gets ResponseStatus.

Signature 

global String getResponseStatus()

Return Value 

Type: String

setGatewayRequest(gatewayRequest) 

Sets the capture payment request sent to the payment gateway.

Signature 

global void setGatewayRequest(String gatewayRequest)

Parameters 

gatewayRequest: Type: String

Return Value 

Type: Void

getGatewayRequest(gatewayRequest) 

Returns the string containing the payment capture request sent to the gateway.

Signature 

global String GatewayRequest()

Return Value 

Type: String

setGatewayResponse(gatewayResponse) 

Returns the gateway’s response following a capture payment transaction.

Signature 

global void setGatewayResponse(String gatewayResponse)

Parameters 

gatewayResponse: Type: String

Return Value 

Type: void

getGatewayResponse(gatewayResponse) 

Returns the string containing the gateway’s response from a capture payment transaction.

Signature 

global void getGatewayResponse()

Return Value 

Type: Void

setResponseMessage(responseMessage) 

Sets ResponseMessage.

Signature 

global void setResponseMessage(String responseMessage)

Parameters 

responseMessage: Type: String

Return Value 

Type: void

getResponseMessage() 

Gets ResponseMessage.

Signature 

global String getResponseMessage()

Return Value 

Type: String

setResponseCode(responseCode) 

Sets ResponseCode.

Signature 

global void setResponseCode(String responseCode)

Parameters 

responseCode: Type: String

Return Value 

Type: void

getResponseCode() 

Gets ResponseCodeMessage.

Signature 

global String getResponseCode()

Return Value 

Type: String

setResponseToValidate(responseToValidate) 

Sets ResponseToValidate.

Signature 

global void setResponseToValidate(String responseToValidate)

Parameters 

responseToValidate: Type: String

Return Value 

Type: void

getResponseToValidate() 

Gets Response To Validate.

Signature 

public String getResponseToValidate()

Return Value 

Type: String

setGatewayId(gatewayId) 

Sets Gateway ID.

Signature 

global void setGatewayId(String gatewayId)

Parameters 

gatewayId: Type: String

Return Value 

Type: void

getGatewayId() 

Gets Gateway ID.

Signature 

global String getGatewayId()

Return Value 

Type: String

setType(type) 

Sets Type.

Signature 

global void setType(String type)

Parameters 

type: Type: String

Return Value 

Type: void

getType() 

Gets Type.

Signature 

global String getType()

Return Value 

Type: String

setRequestTypeOfPayment(requestTypeOfPayment) 

Sets RequestTypeOfPayment.

Signature 

global void setRequestTypeOfPayment(String requestTypeOfPayment)

Parameters 

requestTypeOfPayment: Type: String

Return Value 

Type: void

getRequestTypeofPayment() 

Gets RequestTypeOfPayment.

Signature 

global String getRequestTypeofPayment()

Return Value 

Type: String

setRequestTransactionType(requestTransactionType) 

Sets RequestTransactionType.

Signature 

global void setRequestTransactionType(String requestTransactionType)

Parameters 

requestTransactionType: Type: String

Return Value 

Type: void

getRequestTransactionType() 

Gets RequestTransactionType.

Signature 

global String getRequestTransactionType()

Return Value 

Type: String

setIsSuccess(isSuccess) 

Sets IsSuccess

Signature 

global void setIsSuccess(Boolean isSuccess)

Parameters 

isSuccess: Type: Boolean

Return Value 

Type: void

getIsSuccess() 

Gets IsSuccess.

Signature 

global Boolean getIsSuccess()

Return Value 

Type: Boolean

setError(error) 

Sets Error.

Signature 

global void setError(String error)

Parameters 

error: Type: String

Return Value 

Type: void

getErrors() 

Gets Errors.

Signature 

public List<String> getErrors()

Return Value 

Type: List<String>

setResponseValueByKey(getResponseValueByKey) 

Sets ResponseValueByKey

Signature 

public void setResponseValueByKey(Map<String,String> getResponseValueByKey)

Parameters 

getResponseValueByKey: Type: Map<String,String>

Return Value 

Type: void

getResponseValueByKey() 

Gets ResponseValueByKey.

Signature 

global Map<string, string> getResponseValueByKey()

Return Value 

Type: Map<string, string>

setId(Id) 

Sets ID.

Signature 

global void setId(String Id)

Parameters 

Id: Type: String

Return Value 

Type: void

getId() 

Gets ID.

Signature 

global String getId()

Return Value 

Type: String

setMessage(message) 

Sets Message.

Signature 

global void setMessage(String message)

Parameters 

message: Type: String

Return Value 

Type: void

getMessage() 

Gets Message.

Signature 

global String getMessage()

Return Value 

Type: String

setEntity(entity) 

Sets Message.

Signature 

global void setEntity(String entity)

Parameters 

entity: Type: String

Return Value 

Type: void

getEntity() 

Gets Message.

Signature 

global String getEntity()

Return Value 

Type: String

setGatewayStatus(gatewayStatus) 

Sets gatewayStatus.

Signature 

global void setGatewayStatus(GatewayStatusType gatewayStatus)

Parameters 

gatewayStatus: Type: GatewayStatusType

Return Value 

Type: void

getGatewayStatus() 

Gets GatewayStatus.

Signature 

global GatewayStatusType getGatewayStatus()

Return Value 

Type: GatewayStatusType