developer:soap-1.3: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.3:methods:postauth [2010/08/05 16:55]
epouchak
developer:soap-1.3:methods:postauth [2010/08/26 15:26]
irina
Line 142: Line 142:
  
 </​code>​ </​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>​
 +
 ==== XML ==== ==== XML ====
  
Line 154: Line 196:
 <​SOAP-ENV:​Body> ​ <​SOAP-ENV:​Body> ​
 <​ns1:​postAuth> ​ <​ns1:​postAuth> ​
-<Token xsi:​type="​ns1:​ueSecurityToken">​  +<Token xsi:​type="​ns1:​ueSecurityToken">​ 
-<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​  +<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​ 
-<PinHash xsi:​type="​ns1:​ueHash">​  +<PinHash xsi:​type="​ns1:​ueHash">​ 
-<​HashValue xsi:​type="​xsd:​string">​d0e5060a09a57e7c5e23026ec820982e17047eb8</​HashValue>​  +<​HashValue xsi:​type="​xsd:​string">​11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</​HashValue>​ 
-<Seed xsi:​type="​xsd:​string">​1193443057722414595</​Seed>​  +<Seed xsi:​type="​xsd:​string">​12678150211876663375</​Seed>​ 
-<Type xsi:​type="​xsd:​string">​sha1</​Type>​  +<Type xsi:​type="​xsd:​string">​sha1</​Type>​ 
-</​PinHash>​  +</​PinHash>​ 
-<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey>​  +<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey>​ 
-</​Token> ​+</​Token>​
 <Params xsi:​type="​ns1:​TransactionRequestObject"> ​ <Params xsi:​type="​ns1:​TransactionRequestObject"> ​
 <​AccountHolder xsi:​type="​xsd:​string">​Tester Jones</​AccountHolder> ​ <​AccountHolder xsi:​type="​xsd:​string">​Tester Jones</​AccountHolder> ​
Line 181: Line 223:
 </​ns1:​postAuth> ​ </​ns1:​postAuth> ​
 </​SOAP-ENV:​Body> ​ </​SOAP-ENV:​Body> ​
-</​SOAP-ENV:​Envelope> ​+</​SOAP-ENV:​Envelope>​
 </​code>​ </​code>​
  
  
developer/soap-1.3/methods/postauth.txt · Last modified: 2010/08/26 15:26 by irina

Page Tools