Retrieves only selected details of a specified transaction.
If only a small subset of the transaction data is needed, use this method instead of the broader getTransaction retrieval method. This method returns only the data requested in the Fields parameters and is therefore more efficient than the getTransaction method.
To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the searchTransactions method.
Specify which transaction fields you would like to retrieve data from by entering one or more of the following:
FieldValue getTransactionCustom ( ueSecurityToken Token, integer RefNum, string Fields )
Type |
Name |
Description |
Token |
Merchant security token: used to identify merchant and validate transaction. |
|
integer |
RefNum |
Transaction Reference number assigned by the gateway. |
string |
Fields |
An array listing the fields to be retrieved. |
Returns requested data from specified transaction. Possible values include transaction status, gateway response, date and time of transaction, credit card specific data, transaction amount, cardholder name and address, and any other transaction details entered in the request. |
<?php
try {
$RefNum=1009411;
$Fields = array(
'Details.Amount',
'AccountHolder',
'CheckTrace.TrackingNum'
);
$res=$client->getTransactionCustom($token, $RefNum, $Fields);
print_r($res);
}
catch (SoapFault $e) {
echo $client->__getLastResponse();
die("Get Transaction failed :" .$e->getMessage());
}
?>
try {
//Set RefNum to the Reference Number of transaction you
//want to retrieve fields from.
BigInteger RefNum = new BigInteger();
StringArray fields = new StringArray();
fields.add(new String("Details.Amount"));
FieldValueArray Response;
Response = client.getTransactionCustom(token, refnum, fields);
} catch (Exception e) {
System.out.println("Soap Exception: " + e.getMessage());
}
Dim refnum As String
refnum = 46976537
Dim fields(0 To 2) As String
fields(0) = "Details.Amount"
fields(1) = "AccountHolder"
fields(2) = "CreditCardData.AvsStreet"
Dim tran(0 To 2) As eBizCharge.FieldValue
For i As Integer = 0 To 2
tran(i) = New eBizCharge.FieldValue()
Next i
tran = client.getTransactionCustom(token, refnum, fields)
MsgBox(tran(0).Value & " " & tran(1).Value & " " & tran(2).Value)
string refnum;
string[] fields = new string[3];
fields[0] = "Details.Amount";
fields[1] = "AccountHolder";
fields[2] = "CreditCardData.AvsStreet";
refnum = "46976537";
eBizCharge.FieldValue[] tran = new eBizCharge.FieldValue[3];
for (int i = 0; i < 3; i++)
{
tran[i] = new eBizCharge.FieldValue();
}
try
{
tran = client.getTransactionCustom(token, refnum,fields);
MessageBox.Show(string.Concat("Transaction Approved, RefNum: ",
tran[0].Field," = ",tran[0].Value, " ",
tran[0].Field," = ",tran[1].Value, " ",
tran[0].Field," = ",tran[2].Value));
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:eBizCharge" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getTransactionCustom>
<Token xsi:type="ns1:ueSecurityToken">
<ClientIP xsi:type="xsd:string">192.168.0.1</ClientIP>
<PinHash xsi:type="ns1:ueHash">
<HashValue xsi:type="xsd:string">11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</HashValue>
<Seed xsi:type="xsd:string">12678150211876663375</Seed>
<Type xsi:type="xsd:string">sha1</Type>
</PinHash>
<SourceKey xsi:type="xsd:string">HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</SourceKey>
</Token>
<RefNum xsi:type="xsd:integer">1118458</RefNum>
<Fields SOAP-ENC:arrayType="xsd:string[5]" xsi:type="ns1:stringArray">
<item xsi:type="xsd:string">Response.AvsResult</item>
<item xsi:type="xsd:string">Response.AvsResultCode</item>
<item xsi:type="xsd:string">DateTime</item>
<item xsi:type="xsd:string">Response.Error</item>
<item xsi:type="xsd:string">Details.Invoice</item>
</Fields>
</ns1:getTransactionCustom>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>