searchCustomerID

Parent Previous Next

searchCustomerID

Find a CustNum (assigned by the gateway) using a CustID (assigned by merchant).

 

Description

This method allows you to use the CustID - a customer identification number assigned by the merchant at the time the customer account is created - to find the gateway assigned CustNum associated with the customer's stored data.

The CustNum is required for several customer data storage management methods, including addCustomerPaymentMethod, updateCustomer, and deleteCustomer.

 

Syntax

integer searchCustomerID ( ueSecurityToken Token, string CustID )

 

Arguments

 

Type

Name

Description

ueSecurityToken

Token

Merchant security token: used to identify merchant and validate transaction.

string

CustID

Merchant assigned Customer ID.

 

Return Value

 

integer

Returns the requested CustNum.

 

Examples

 

PHP

 

<?php

try {

 $CustID = "21021";

 $CustNum = $client->searchCustomerID(token, $CustID);

 $this->assertEquals($CustNum, "1222");

 }

catch(SoapFault $e) {

 die("soap fault: " .$e->getMessage());        

 }

?>

 

 

.NET VB

 

Dim custID As String

       custID = "123456"

       Dim response As String

       response = client.searchCustomerID(token, custID)

       MsgBox(response)

 

 

.NET C#

 

string custID = "123456";

           string response;

           try

           {

               response = client.searchCustomerID(token, custID);

                   MessageBox.Show(string.Concat("CustNum: ",response));

           }

           catch (Exception err)

           {

               MessageBox.Show(err.Message);

           }

: