developer:soap-1.3:methods:movecustomer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer:soap-1.3:methods:movecustomer [2010/06/02 10:23]
hmcgowan created
developer:soap-1.3:methods:movecustomer [2010/10/11 15:01]
irina
Line 44: Line 44:
 </​code>​ </​code>​
  
 +==== .NET VB ====
 +<code vb>
 +token1 = Me.CreateToken("​O**********************************************8",​ "​1234"​)
 +        token2 = Me.CreateToken("​z*********************************************P",​ "​1234"​)
  
 +        Dim custNum As String
 +        custNum = "​111659"​
 +        Dim NewCust As String
 +
 +        NewCust = client.moveCustomer(token1,​ custNum, token2)
 +        MsgBox(NewCust)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.ueSecurityToken totoken = new usaepay.ueSecurityToken();​
 +            usaepay.ueHash hash = new usaepay.ueHash();​
 +            string sourcekey = "NEW SOURCE KEY";
 +            string pin = "new pin";
 +            totoken.SourceKey = sourcekey;
 +
 +            hash.Type = "​md5";​
 +            hash.Seed = Guid.NewGuid().ToString();​
 +
 +            string prehashvalue = string.Concat(token.SourceKey,​ hash.Seed, pin);
 +            hash.HashValue = GenerateHash(prehashvalue);​
 +
 +            totoken.PinHash = hash;
 +
 +            string CustNum = "​89147";​
 +            string NewCust;
 +
 +            try
 +            {
 +                NewCust = client.moveCustomer(token,​ CustNum, totoken);
 +                MessageBox.Show(string.Concat(NewCust));​
 +            }
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
developer/soap-1.3/methods/movecustomer.txt ยท Last modified: 2010/10/11 15:01 by irina

Page Tools