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
Next 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]
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
  
-        ​Dim refnum As String +        ​token Me.CreateToken("​714SSUxv1uohng2XkMJ7kLpETsu58G66",​ "​1234"​)
-        Dim amount As Double +
-        refnum ​46993241 +
-        amount = 1.0+
  
-        Dim response As usaepay.TransactionResponse +        ​Dim transaction As usaepay.TransactionRequestObject = New usaepay.TransactionRequestObject 
-        response = client.refundTransaction(token, ​refnumamount)+        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 response As usaepay.TransactionResponse = New usaepay.TransactionResponse 
 + 
 +        response = client.captureTransaction(token, ​transaction.RefNumtransaction.Details.Amount)
  
         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)
Line 98: Line 106:
  
 ==== .NET C# ==== ==== .NET C# ====
 +For directions on how to set up the WSDL link and create the "​token"​ and "​client"​ variables, go to the [[..:​howto:​csharp|C Sharp .Net Soap How-to]].
 <code c> <code c>
  
Line 130: Line 139:
  
 </​code>​ </​code>​
 +
 ==== XML ==== ==== XML ====
  
developer/soap-1.4/methods/refundtransaction.txt · Last modified: 2010/08/30 16:46 by epouchak

Page Tools