developer:soap-1.1:methods:gettransactioncustom

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:gettransactioncustom [2009/06/24 13:39]
charlie created
developer:soap-1.1:methods:gettransactioncustom [2010/09/29 14:25]
irina
Line 149: Line 149:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refnum;
 +            string[] fields = new string[3];
 +
 +            fields[0] = "​Details.Amount";​
 +            fields[1] = "​AccountHolder";​
 +            fields[2] = "​CreditCardData.AvsStreet";​
 +
 +            refnum = "​47027872";​
 +
 +            usaepay.FieldValue[] tran = new usaepay.FieldValue[3];​
 +
 +            for (int i = 0; i < 3; i++)
 +            {
 +                tran[i] = new usaepay.FieldValue();​
 +            }
 +
 +            try
 +            {
 +                tran = client.getTransactionCustom(token,​ refnum,​fields);​
 +
 +                    MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                            tran[0].Field,"​ = ",​tran[0].Value,​ " ",
 +                            tran[0].Field,"​ = ",​tran[1].Value,​ " ",
 +                            tran[0].Field,"​ = ",​tran[2].Value));​
 +              ​
 +            }
 +
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.1/methods/gettransactioncustom.txt ยท Last modified: 2010/10/21 12:37 by irina

Page Tools