developer:soap-1.6:methods:overridetransaction

Differences

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

Link to this comparison view

developer:soap-1.6:methods:overridetransaction [2012/08/04 09:58] (current)
tem created
Line 1: Line 1:
 +<embed ..:​contents/>​
 +
 +====== overrideTransaction ======
 +
 +Override a specific transaction.
 +
 +
 +
 +
 +
 +===== Description =====
 +
 +This method can be used to override a transaction that has been flagged for manager approval. ​
 +
 +**Currently this method applies only to electronic check transactions.**
 +
 +See also [[runTransaction]],​ [[voidTransaction]],​ [[runCheckSale]],​ [[runCheckCredit]]
 +
 +===== Syntax =====
 +
 +boolean **overrideTransaction** ( [[..:​objects:​ueSecurityToken]] Token, integer RefNum, string Reason )
 +
 +===== Arguments =====
 +
 +^Type     ​^Name ​    ​^Description ​    ^
 +|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction.|
 +|integer |RefNum |Transaction Reference number assigned by the gateway.|
 +|string |Reason |Description of override reason. (Optional, only used with select check processors)|
 +
 +
 +===== Return Value =====
 +
 +|boolean|
 +
 +===== Examples =====
 +==== .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>
 +string refnum;
 +            string reason;
 +
 +            refnum = "​46976525";​
 +            reason = "​Because it is test";
 +
 +            //​usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +            Boolean response;
 +
 +            try
 +            {
 +                response = client.overrideTransaction(token,​ refnum, reason);
 +                if (response)
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction was overrided successfully"​));​
 +                }
 +                else MessageBox.Show(string.Concat("​Error"​));​
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 +            ​
 +</​code>​
 +
 +==== VB.Net ====
 +<code vb>
 +  Dim client As usaepay.usaepayService = New usaepay.usaepayService
 +        Dim token As usaepay.ueSecurityToken
 +
 +        token = Me.CreateToken("​714SSUxv1uohng2XkMJ7kLpETsu58G66",​ "​1234"​)
 +
 +        Dim refnum As String
 +        refnum = 47019830
 +
 +        Dim reason As String
 +        reason = "​Test"​
 +
 +        Dim response As Boolean
 +        response = client.overrideTransaction(token,​ refnum, reason)
 +
 +        If response = True Then
 +            MsgBox("​Override Successful."​)
 +        Else
 +            MsgBox("​An Error Occured."​)
 +        End If
 +</​code>​
 +
 +===== Change History =====
 +
 +^ Version ^ Change ^
 +| 1.0 | Method added in soap v1.0 |
  
developer/soap-1.6/methods/overridetransaction.txt ยท Last modified: 2012/08/04 09:58 by tem

Page Tools