developer:soap-1.1:methods:gettransactionstatus

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:gettransactionstatus [2009/06/24 13:37]
charlie created
developer:soap-1.1:methods:gettransactionstatus [2010/09/29 14:23]
irina
Line 98: Line 98:
       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.1/methods/gettransactionstatus.txt ยท Last modified: 2010/10/21 12:17 by irina

Page Tools