developer:soap-1.2:objects:transactionresponse

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.2:objects:transactionresponse [2010/02/12 10:41]
hmcgowan created
developer:soap-1.2:objects:transactionresponse [2010/10/20 15:18]
irina
Line 61: Line 61:
  
 ===== Examples ===== ===== Examples =====
 +==== .NET VB ====
 +<code vb>
 +Dim response As usaepay.TransactionResponse
 + 
 +response = client.runTransaction(token,​ tran)
 + 
 +MsgBox("​Reference Number: " & response.RefNum)
 +</​code>​
  
 +==== .NET C# ==== 
 +<code c>
 +usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 + 
 +try
 +{
 +    response = client.runTransaction(token,​ tran);
 +    if (response.ResultCode == "​A"​)
 +    {
 +        MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                response.RefNum));​
 +    }
 +    else
 +    {
 +        MessageBox.Show(string.Concat("​Transaction Failed: ",
 +                response.Error));​
 +    }
 +}
  
 +</​code>​
 +
 +==== XML ====
 <code xml> <code xml>
 <​Response xsi:​type="​ns1:​TransactionResponse">​ <​Response xsi:​type="​ns1:​TransactionResponse">​
developer/soap-1.2/objects/transactionresponse.txt ยท Last modified: 2010/10/20 15:18 by irina

Page Tools