Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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.
| 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 |