developer:soap-1.3:methods:runtransaction

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
developer:soap-1.3:methods:runtransaction [2010/08/06 11:32]
epouchak
developer:soap-1.3:methods:runtransaction [2010/08/25 15:00] (current)
epouchak
Line 127: Line 127:
 } }
 </​code>​ </​code>​
- 
 ==== Visual Basic (.Net) ==== ==== Visual Basic (.Net) ====
  
Line 133: Line 132:
  
 <code vb> <code vb>
-Dim tran As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject+ Dim client As usaepay.usaepayService = New usaepay.usaepayService 
 +        Dim token As usaepay.ueSecurityToken 
 + 
 +        token = Me.CreateToken("​rGzC0rJ8B9RDj8Wm96GrYokgZIRe4eWF",​ "​1234"​) 
 + 
 + 
 + 
 +        ​Dim tran As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject 
 + 
 +        tran.CreditCardData = New usaepay.CreditCardData 
 +        tran.CreditCardData.CardNumber = "​4444555566667779"​ 
 +        tran.CreditCardData.CardExpiration = "​0913"​ 
 +        tran.CreditCardData.CardCode = "​999"​
  
-tran.CreditCardData ​= New usaepay.CreditCardData +        ​tran.Details ​= New usaepay.TransactionDetail 
-tran.CreditCardData.CardNumber ​"​4444555566667779"​ +        tran.Details.Amount ​9.02 
-tran.CreditCardData.CardExpiration ​= "0913+        tran.Details.AmountSpecified = True 
-tran.CreditCardData.CardCode ​= "999"+        tran.Details.Invoice ​= "434534
 +        tran.Details.Description ​= "Example transaction"
  
-tran.Details = New usaepay.TransactionDetail +        ​tran.Command ​= "sale"
-tran.Details.Amount = 9.02 +
-tran.Details.AmountSpecified = True +
-tran.Details.Invoice = "​434534"​ +
-tran.Details.Description ​= "Example transaction"+
  
-tran.Command = "​sale"​ 
  
-Dim response As usaepay.TransactionResponse+        ​Dim response As usaepay.TransactionResponse
  
-response = client.runTransaction(token,​ tran)+        ​response = client.runTransaction(token,​ tran)
  
-MsgBox("​Reference ​Number: " & response.RefNum)+        If response.ResultCode = "​A"​ Then 
 +            ​MsgBox("​Transaction Approved, Refernce ​Number: " & response.RefNum) 
 +        ElseIf response.ResultCode = "​D"​ Then 
 +            MsgBox("​Transaction Declined, Reason: " & response.Error) 
 +        Else 
 +            MsgBox("​Transaction Error, Reason: " & response.Error) 
 +        End If
 </​code>​ </​code>​
  
developer/soap-1.3/methods/runtransaction.txt · Last modified: 2010/08/25 15:00 by epouchak

Page Tools