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.
See also runCustomerTransaction, enableCustomer, disableCustomer, deleteCustomer, searchCustomerID, getCustomer, searchCustomers, addCustomer, addCustomerPaymentMethod, deleteCustomerPaymentMethod, updateCustomer, quickUpdateCustomer
| Type | Name | Description |
| ueSecurityToken | Token | Merchant security token: used to identify merchant and validate transaction. |
| integer | CustNum | A unique customer number assigned by the gateway. |
For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.
<?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();
?>
Dim CustNum As String
CustNum = "120221"
Dim tran As usaepay.TransactionSearchResult
tran = New usaepay.TransactionSearchResult
tran = client.getCustomerHistory(token, CustNum)
MsgBox(tran.SalesCount)
string CustNum = "109100";
usaepay.TransactionSearchResult tran = new usaepay.TransactionSearchResult();
try
{
tran = client.getCustomerHistory(token, CustNum);
MessageBox.Show(string.Concat(tran.SalesCount));
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}