developer:soap-1.4:methods:voidtransaction

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:voidtransaction [2010/08/30 11:47]
tem
developer:soap-1.4:methods:voidtransaction [2010/08/30 17:12] (current)
epouchak
Line 76: Line 76:
 ?> ?>
 </​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("​714SSUxv1uohng2XkMJ7kLpETsu58G66",​ "​1234"​)
  
-    token Me.CreateToken("​982lz9VsLm87MA54Sv8E582h8OZMArL6",​ "​443311"​)+        Dim transaction As usaepay.TransactionRequestObject ​New usaepay.TransactionRequestObject 
 +        Dim refnum As String 
 +        Dim void As Boolean
  
-    Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject +        ​refnum ​= "​46980114"​
-    Dim refnum ​As String +
-    Dim void As Boolean+
  
-    refnum ​"​46405580"​+        void True
  
-    void = True+        Dim result As Boolean
  
-    Dim result ​As Boolean+        ​result ​= client.voidTransaction(token,​ refnum)
  
-    result = client.voidTransaction(token,​ refnum) +        ​If result = True Then 
-    ​If result = True Then +            MsgBox("​Transaction Voided"​) 
-        MsgBox("​Transaction Voided"​) +        Else 
-    Else +            MsgBox("​An error occured."​) 
-        MsgBox("​An error occured."​) +        End If
-    End If+
 </​code>​ </​code>​
  
developer/soap-1.4/methods/voidtransaction.txt · Last modified: 2010/08/30 17:12 by epouchak

Page Tools