developer:soap-1.4:methods:capturetransaction

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.4:methods:capturetransaction [2010/08/30 14:15]
irina
developer:soap-1.4:methods:capturetransaction [2010/08/30 16:43] (current)
epouchak
Line 79: Line 79:
 ?>  ?> 
 </​code>​ </​code>​
- 
 ====VB==== ====VB====
 For directions on how to set up the WSDL link and create the "​token"​ and "​client"​ variables, go to the [[..:​howto:​vb|Visual Basic .Net Soap How-to]]. For directions on how to set up the WSDL link and create the "​token"​ and "​client"​ variables, go to the [[..:​howto:​vb|Visual Basic .Net Soap How-to]].
  
 <code vb> <code vb>
-    ​Dim client As usaepay.usaepayService = New usaepay.usaepayService +        ​Dim client As usaepay.usaepayService = New usaepay.usaepayService 
-    Dim token As usaepay.ueSecurityToken+        Dim token As usaepay.ueSecurityToken
  
-    ​token = Me.CreateToken("​982lz9VsLm87MA54Sv8E582h8OZMArL6", "443311")+        ​token = Me.CreateToken("​714SSUxv1uohng2XkMJ7kLpETsu58G66", "1234")
  
-    ​Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject +        ​Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject 
-      transaction.Details = New usaepay.TransactionDetail +        transaction.Details = New usaepay.TransactionDetail 
-      transaction.Details.Amount = "9.02+        transaction.Details.Amount = "11.11
-      transaction.Details.AmountSpecified = True +        transaction.Details.AmountSpecified = "​true"​ 
-      transaction.Details.Invoice = "434534"+        transaction.Details.Invoice = "123456"
  
-    ​transaction.AuthCode = "035786+        ​transaction.AuthCode = "009915
-    transaction.RefNum = "46405618"+        transaction.RefNum = "46993455"
  
-    ​Dim response As usaepay.TransactionResponse = New usaepay.TransactionResponse+        ​Dim response As usaepay.TransactionResponse = New usaepay.TransactionResponse
  
-    ​response = client.captureTransaction(token,​ transaction.RefNum,​ transaction.Details.Amount)+        ​response = client.captureTransaction(token,​ transaction.RefNum,​ transaction.Details.Amount)
  
-    ​If response.ResultCode = "​A"​ Then +        ​If response.ResultCode = "​A"​ Then 
-      MsgBox("​Transaction Approved, Refnum: " & response.RefNum) +            MsgBox("​Transaction Approved, Refnum: " & response.RefNum) 
-    Else +        Else 
-      MsgBox("​Transaction Error, Reason: " & response.Error) +            MsgBox("​Transaction Error, Reason: " & response.Error) 
-    End If+        End If
 </​code>​ </​code>​
  
developer/soap-1.4/methods/capturetransaction.txt · Last modified: 2010/08/30 16:43 by epouchak

Page Tools