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 Label | API Name | TransactionResult Method |
|---|---|---|
| Card Code Response | blng__CardCodeResponse__c | setCardCodeResponse() |
| Gateway Status | blng__GatewayStatus__c | setGatewayStatus() |
| Request-Type of Payment | blng__RequestTypeOfPayment__c | Internal |
| Response | blng__Response__c | Internal |
| Response Code | blng__ResponseCode__c | setResponseCode() |
| Response Gateway ID | blng__GatewayID__c | setGatewayId() |
| Response Message | blng__ResponseMessage__c | setResponseMessage() |
| Response Status | blng__ResponseStatus__c | Internal |
| Status | blng__Status__c | Internal |
| Type | blng__Type__c | Charge, Refund, Void |