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
Type | Name | Description |
---|---|---|
integer | RefNum | Transaction reference number. (required) |
integer | BatchRefNum | Batch reference number (assigned by the gateway). (required) |
integer | BatchNum | Batch sequence number. (required) |
string | Result | Transaction result. (Approved, Declined, Error, etc.). (required) |
string | ResultCode | Single-character result code. (A, D, or E). (required) |
string | AuthCode | Authorization code. (required) |
double | AuthAmount | Amount that was authorized. Could be less than Amount requested if AllowPartialAuth was true (see Partial Authorizations). (required) |
double | RemainingBalance | Returns the balance remaining on some prepaid and stored value cards. (optional) |
string | AvsResultCode | AVS result code (1 to 3 characters). (optional) |
string | AvsResult | Text description of AVS result code. (optional) |
string | CardCodeResultCode | Card code (CVV2) verification result code (1 character). (optional) |
string | CardCodeResult | Text description of card code result. (optional) |
string | CardLevelResultCode | (optional) |
string | CardLevelResult | Text description of card level result. (optional) |
integer | ErrorCode | Error code (if transaction resulted in error). (optional) |
integer | CustNum | System-assigned customer number of stored customer record (if one was used or created). (required) |
string | Error | Text description of error code. |
string | AcsUrl | ACS URL for Verified by Visa or Mastercard Secure Code. (required) |
string | Payload | Payload for Verified by Visa or Mastercard Secure Code. (optional) |
string | VpasResultCode | VPAS result code. (required) |
boolean | isDuplicate | If true, a duplicate transaction was detected and the response data returned is from the original transaction. (required) |
double | ConvertedAmount | Transaction amount converted to new currency. (required) |
string | ConvertedAmountCurrency | Currency code for new currency. (required) |
double | ConversionRate | Rate used to convert transaction amount. (required) |
string | Status | Description of transaction status. (optional) |
string | StatusCode | Single-character code for transaction status. (optional) |
string | ProfilerScore | Score generated by fraud profiler. (optional) |
string | ProfilerResponse | Fraud profiler result: Pass, Warn, Review. Based on score thresholds. (optional) |
string | ProfilerReason | Comma-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 & 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>
Updated over 5 years ago