developer:soap-1.1:objects:uesecuritytoken

Differences

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

Link to this comparison view

developer:soap-1.1:objects:uesecuritytoken [2009/06/24 14:00]
charlie created
developer:soap-1.1:objects:uesecuritytoken [2010/10/04 15:04] (current)
irina
Line 188: Line 188:
 </​code>​ </​code>​
  
 +==== .NET C# ====
 +<code c>
 +usaepay.ueSecurityToken token = new usaepay.ueSecurityToken();​
  
 +            // SourceKey and Pin (created in merchant console)
 +            token.SourceKey = "​O*******************************************8";​
 +            ​
 +            string pin = "​1234";​
 +
 +            // IP address of end user (if applicable)
 +            token.ClientIP = "​11.22.33.44";  ​
 +
 +            // Instantiate Hash
 +            usaepay.ueHash hash = new usaepay.ueHash();​
 +            hash.Type = "​md5"; ​ // Type of encryption ​
 +            hash.Seed = Guid.NewGuid().ToString(); ​ // unique encryption seed
 +
 +            // Assemble string and hash
 +            string prehashvalue = string.Concat(token.SourceKey,​ hash.Seed, pin);
 +            hash.HashValue = GenerateHash(prehashvalue);​
 +
 +            // Add hash to token
 +            token.PinHash = hash;
 +
 +            return token;
 +</​code>​
  
 ==== Coldfusion ==== ==== Coldfusion ====
developer/soap-1.1/objects/uesecuritytoken.txt ยท Last modified: 2010/10/04 15:04 by irina

Page Tools