developer:soap-1.4:methods:refundtransaction

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:refundtransaction [2010/08/30 11:40]
tem
developer:soap-1.4:methods:refundtransaction [2010/08/30 16:46] (current)
epouchak
Line 77: Line 77:
 } }
 </​code>​ </​code>​
- 
 ==== Visual Basic (.NET) ==== ==== Visual Basic (.NET) ====
 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 token As usaepay.ueSecurityToken
 +
 +        token = Me.CreateToken("​714SSUxv1uohng2XkMJ7kLpETsu58G66",​ "​1234"​)
 +
 +        Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject
 +        transaction.Details = New usaepay.TransactionDetail
 +        transaction.Details.Amount = "​11.11"​
 +        transaction.Details.AmountSpecified = "​true"​
 +        transaction.Details.Invoice = "​123456"​
 +
 +        transaction.AuthCode = "​009915"​
 +        transaction.RefNum = "​46993455"​
  
-        Dim refnum ​As String +        Dim response ​As usaepay.TransactionResponse ​New usaepay.TransactionResponse
-        Dim amount As Double +
-        refnum = 46993241 +
-        amount ​1.0+
  
-        ​Dim response As usaepay.TransactionResponse +        response = client.captureTransaction(token, ​transaction.RefNumtransaction.Details.Amount)
-        ​response = client.refundTransaction(token, ​refnumamount)+
  
         If response.ResultCode = "​A"​ Then         If response.ResultCode = "​A"​ Then
-            MsgBox("​Transaction ​RefundedReference Number: " & response.RefNum)+            MsgBox("​Transaction ​ApprovedRefnum: " & response.RefNum)
         Else         Else
             MsgBox("​Transaction Error, Reason: " & response.Error)             MsgBox("​Transaction Error, Reason: " & response.Error)
developer/soap-1.4/methods/refundtransaction.txt · Last modified: 2010/08/30 16:46 by epouchak

Page Tools