Mapping Gateway Responses to Payment Transactions with TransactionResult

The TransactionResult class contains a list of information that the payment gateway sends in response to a transaction request. For charge transactions, your payment gateway package evaluates this information and maps it to a Payment Transaction record in Salesforce Billing.

For complete reference information on the TransactionResult class’s methods and parameters, review TransactionResult Class.

TransactionResult methods map their output to specific fields on the payment transaction object.

The payment gateway package doesn’t create a payment transaction for tokenization and refund transactions.

Field LabelAPI NameTransactionResult Method
Card Code Responseblng__CardCodeResponse__csetCardCodeResponse()
Gateway Statusblng__GatewayStatus__csetGatewayStatus()
Request-Type of Paymentblng__RequestTypeOfPayment__cInternal
Responseblng__Response__cInternal
Response Codeblng__ResponseCode__csetResponseCode()
Response Gateway IDblng__GatewayID__csetGatewayId()
Response Messageblng__ResponseMessage__csetResponseMessage()
Response Statusblng__ResponseStatus__cInternal
Statusblng__Status__cInternal
Typeblng__Type__cCharge, Refund, Void