developer:soap-1.2:methods:gettransactionstatus

Differences

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

Link to this comparison view

developer:soap-1.2:methods:gettransactionstatus [2010/02/12 10:41]
epouchak created
developer:soap-1.2:methods:gettransactionstatus [2010/09/15 16:25] (current)
irina
Line 119: Line 119:
       MsgBox("​Status:​ On Hold")       MsgBox("​Status:​ On Hold")
     End If     End If
 +</​code>​
 +
 +==== .NET C# ==== 
 +<code c>
 +string refnum;
 +            refnum = "​47027872";​
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.getTransactionStatus(token,​ refnum);
 +                if (response.StatusCode == "​V"​) { MessageBox.Show(string.Concat("​Status:​ Voided"​));​ }
 +                if (response.StatusCode == "​B"​) {MessageBox.Show(string.Concat("​Status:​ Submitted"​));​}
 +                if (response.StatusCode == "​E"​) {MessageBox.Show(string.Concat("​Status:​ Error, Reason: " + response.Error));​}
 +                if (response.StatusCode == "​N"​) {MessageBox.Show(string.Concat("​Status:​ New transaction"​));​}
 +                if (response.StatusCode == "​F"​) {MessageBox.Show(string.Concat("​Status:​ Funded"​));​}
 +                if (response.StatusCode == "​S"​) {MessageBox.Show(string.Concat("​Status:​ Settled"​));​}
 +                if (response.StatusCode == "​P"​) {MessageBox.Show(string.Concat("​Status:​ Pending"​));​}
 +                if (response.StatusCode == "​T"​) {MessageBox.Show(string.Concat("​Status:​ Timed Out (no response in 5 days)"​));​}
 +                if (response.StatusCode == "​R"​) {MessageBox.Show(string.Concat("​Status:​ Returned"​));​}
 +                if (response.StatusCode == "​M"​) { MessageBox.Show(string.Concat("​Status:​ On hold"​));​ }
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 </​code>​ </​code>​
  
developer/soap-1.2/methods/gettransactionstatus.txt ยท Last modified: 2010/09/15 16:25 by irina

Page Tools