Pull details of all transactions run for CustNum.
This method allows you to view all of the transactions completed for a particular customer.
This method requires the use of the CustNum, a unique customer number assigned by the gateway. If you have lost or cannot remember the customer's CustNum, use the searchCustomers method to find the correct CustNum.
TransactionSearchResult getCustomerHistory ( ueSecurityToken Token, integer CustNum )
Type |
Name |
Description |
Token |
Merchant security token: used to identify merchant and validate transaction. |
|
integer |
CustNum |
A unique customer number assigned by the gateway. |
Returns the results of the customer transaction history search. |
<?php
try {
$custnum='547';
print_r($client->getCustomerHistory($token,$custnum));
}
catch(SoapFault $e) {
echo $e->getMessage();
}
echo "\n\nRequest: " . $client->__getLastRequest();
echo "\n\nResponse: " . $client->__getLastResponse();
?>
try {
//Set CustNum to the Customer Number of customer you
//want to retrieve a transaction history from.
BigInteger CustNum = new BigInteger;
TransactionSearchResult CustHist = new TransactionSearchResult();
CustHist = client.getCustomerHistory(token, CustNum);
} catch (Exception e) {
System.out.println("Soap Exception: " + e.getMessage());
}
Dim CustNum As String
CustNum = "103125"
Dim tran As eBizCharge.TransactionSearchResult
tran = New eBizCharge.TransactionSearchResult
tran = client.getCustomerHistory(token, CustNum)
MsgBox(tran.SalesCount)
string CustNum = "89147";
eBizCharge.TransactionSearchResult tran = new eBizCharge.TransactionSearchResult();
try
{
tran = client.getCustomerHistory(token, CustNum);
MessageBox.Show(string.Concat(tran.SalesCount));
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}