developer:soap-1.1:methods:movecustomer

This is an old revision of the document!


moveCustomer

Move customer from one merchant to another.

Description

This method allows you to move a customer record from one merchant to another. This method is only available to merchants who have a master user setup to access both accounts. The move method copies the customer to new merchant and then deletes the original customer. A new CustNum is assigned.

Syntax

CustNum moveCustomer ( ueSecurityToken FromToken, integer CustNum, ueSecurityToken ToToken)

Arguments

Type Name Description
ueSecurityToken FromToken Merchant security token: used to identify the merchant that the customer is being moved from.
integer CustNum The gateway assigned customer number for the the customer to be moved.
ueSecurityToken ToToken Merchant security token: used to identify the merchant that the customer is being moved to.

Return Value

Integer Returns gateway assigned Customer Number of the new customer.

Examples

.NET C#

usaepay.ueSecurityToken totoken = new usaepay.ueSecurityToken();
            usaepay.ueHash hash = new usaepay.ueHash();
            string sourcekey = "zv8E29p048pw3yf4Dm313OYDK1t6t4DP";
            string pin = "1234";
            totoken.SourceKey = sourcekey;
 
            hash.Type = "md5";
            hash.Seed = Guid.NewGuid().ToString();
 
            string prehashvalue = string.Concat(totoken.SourceKey, hash.Seed, pin);
            hash.HashValue = GenerateHash(prehashvalue);
 
            totoken.PinHash = hash;
 
            string CustNum = "109100";
            string NewCust;
 
            try
            {
                NewCust = client.moveCustomer(token, CustNum, totoken);
                MessageBox.Show(string.Concat(NewCust));
            }
 
            catch (Exception err)
            {
                MessageBox.Show(err.Message);
            }
developer/soap-1.1/methods/movecustomer.1285882782.txt.gz · Last modified: 2010/09/30 14:39 by irina

Page Tools