developer:soap-1.1:methods:gettransactionstatus

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.1:methods:gettransactionstatus [2009/06/24 13:37]
charlie created
developer:soap-1.1:methods:gettransactionstatus [2010/10/21 12:17]
irina
Line 11: Line 11:
 To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the [[searchTransactions]] method. To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the [[searchTransactions]] method.
  
-See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[authOnly]], [[captureTransaction]] ​+See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[runAuthOnly]], [[captureTransaction]] ​
  
 ===== Syntax ===== ===== Syntax =====
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