developer:soap-1.1:methods:postauth

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.1:methods:postauth [2009/06/24 13:35]
charlie
developer:soap-1.1:methods:postauth [2010/10/21 11:41]
irina
Line 7: Line 7:
 This method allows merchants to post authorization codes obtained offline (ie: telephone authorization) which may be required for some credit card sales depending on the policies of the card's bank of issue. This method allows merchants to post authorization codes obtained offline (ie: telephone authorization) which may be required for some credit card sales depending on the policies of the card's bank of issue.
  
-See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[captureTransaction]],​ [[getTransactionStatus]],​ [[authOnly]]+See also [[runTransaction]],​ [[runQuickSale]],​ [[voidTransaction]],​ [[runCredit]],​ [[runSale]],​ [[captureTransaction]],​ [[getTransactionStatus]],​ [[runAuthOnly]]
  
 ===== Syntax ===== ===== Syntax =====
Line 98: Line 98:
     End If     End If
  
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.TransactionRequestObject tran = new usaepay.TransactionRequestObject();​
 +
 +            tran.CreditCardData = new usaepay.CreditCardData();​
 +            tran.CreditCardData.CardNumber = "​4444555566667779";​
 +            tran.CreditCardData.CardExpiration = "​1212";​
 +            tran.CreditCardData.CardCode = "​123";​
 +
 +            tran.Details = new usaepay.TransactionDetail();​
 +            tran.Details.Amount = 1.01;
 +            tran.Details.AmountSpecified = true;
 +            tran.Details.Invoice = "​123456";​
 +
 +            tran.RefNum = "​46973415";​
 +            tran.AuthCode = "​035786";​
 +
 +            usaepay.TransactionResponse response = new usaepay.TransactionResponse();​
 +
 +            try
 +            {
 +                response = client.postAuth(token,​ tran);
 +
 +                if (response.ResultCode == "​A"​)
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Approved, RefNum: ",
 +                    response.RefNum));​
 +                }
 +                else
 +                {
 +                    MessageBox.Show(string.Concat("​Transaction Failed: ",
 +                    response.Error));​
 +                }
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +
 +            }
 </​code>​ </​code>​
  
developer/soap-1.1/methods/postauth.txt ยท Last modified: 2010/10/21 11:41 by irina

Page Tools