developer:soap-1.1:methods:movecustomer

Differences

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

Link to this comparison view

Last revision Both sides next revision
developer:soap-1.1:methods:movecustomer [2009/06/24 13:53]
charlie created
developer:soap-1.1:methods:movecustomer [2010/09/30 14:39]
irina
Line 27: Line 27:
 ===== Examples ===== ===== Examples =====
  
 +==== .NET C# ====
 +<code 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);​
 +            }
 +</​code>​
developer/soap-1.1/methods/movecustomer.txt ยท Last modified: 2010/10/21 16:14 by irina

Page Tools