TransactionResponse

Contains details on the results of a processed transaction.

Description

This object contains the results which are displayed upon successful completion of a given transaction. Includes transaction result (Approved, Declined, Error) and authorization codes and details.

Properties

TypeNameDescription
integerRefNumTransaction reference number. (required)
integerBatchRefNumBatch reference number (assigned by the gateway). (required)
integerBatchNumBatch sequence number. (required)
stringResultTransaction result. (Approved, Declined, Error, etc.). (required)
stringResultCodeSingle-character result code. (A, D, or E). (required)
stringAuthCodeAuthorization code. (required)
doubleAuthAmountAmount that was authorized. Could be less than Amount requested if AllowPartialAuth was true (see Partial Authorizations). (required)
doubleRemainingBalanceReturns the balance remaining on some prepaid and stored value cards. (optional)
stringAvsResultCodeAVS result code (1 to 3 characters). (optional)
stringAvsResultText description of AVS result code. (optional)
stringCardCodeResultCodeCard code (CVV2) verification result code (1 character). (optional)
stringCardCodeResultText description of card code result. (optional)
stringCardLevelResultCode(optional)
stringCardLevelResultText description of card level result. (optional)
integerErrorCodeError code (if transaction resulted in error). (optional)
integerCustNumSystem-assigned customer number of stored customer record (if one was used or created). (required)
stringErrorText description of error code.
stringAcsUrlACS URL for Verified by Visa or Mastercard Secure Code. (required)
stringPayloadPayload for Verified by Visa or Mastercard Secure Code. (optional)
stringVpasResultCodeVPAS result code. (required)
booleanisDuplicateIf true, a duplicate transaction was detected and the response data returned is from the original transaction. (required)
doubleConvertedAmountTransaction amount converted to new currency. (required)
stringConvertedAmountCurrencyCurrency code for new currency. (required)
doubleConversionRateRate used to convert transaction amount. (required)
stringStatusDescription of transaction status. (optional)
stringStatusCodeSingle-character code for transaction status. (optional)
stringProfilerScoreScore generated by fraud profiler. (optional)
stringProfilerResponseFraud profiler result: Pass, Warn, Review. Based on score thresholds. (optional)
stringProfilerReasonComma-separated list of reason codes that contributed to the score. (optional)

Examples

eBizCharge.TransactionResponse response = new eBizCharge.TransactionResponse();
try
{
   response = client.runTransaction(token, tran);
   if (response.ResultCode == "A")
   {
       MessageBox.Show(string.Concat("Transaction Approved, RefNum: ",
               response.RefNum));
   }
   else
   {
       MessageBox.Show(string.Concat("Transaction Failed: ",
               response.Error));
   }
}
<Response xsi:type="ns1:TransactionResponse">
       <AcsUrl xsi:nil="true"/>
       <AuthCode xsi:type="xsd:string">021730</AuthCode>
       <AvsResult xsi:type="xsd:string">Address: Match &amp; 5 Digit Zip: Match</AvsResult>
       <AvsResultCode xsi:type="xsd:string">YYY</AvsResultCode>
       <BatchRefNum xsi:type="xsd:integer">445979</BatchRefNum>
       <BatchNum xsi:type="xsd:integer">979</BatchNum>
       <CardCodeResult xsi:type="xsd:string">Not Processed</CardCodeResult>
       <CardCodeResultCode xsi:type="xsd:string">P</CardCodeResultCode>
       <ConversionRate xsi:type="xsd:double">0</ConversionRate>
       <ConvertedAmount xsi:type="xsd:double">0</ConvertedAmount>
       <ConvertedAmountCurrency xsi:type="xsd:string">0</ConvertedAmountCurrency>
       <CustNum xsi:type="xsd:integer">0</CustNum>
       <Error xsi:type="xsd:string">Approved</Error>
       <ErrorCode xsi:type="xsd:integer">0</ErrorCode>
       <isDuplicate xsi:type="xsd:boolean">false</isDuplicate>
       <Payload xsi:nil="true"/>
       <RefNum xsi:type="xsd:integer">1175354</RefNum>
       <Result xsi:type="xsd:string">Approved</Result>
       <ResultCode xsi:type="xsd:string">A</ResultCode>
       <Status xsi:type="xsd:string">Pending</Status>
       <StatusCode xsi:type="xsd:string">P</StatusCode>
       <VpasResultCode xsi:nil="true"/>
</Response>