developer:soap-1.6:methods:getaccountdetails

Differences

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

Link to this comparison view

developer:soap-1.6:methods:getaccountdetails [2012/08/04 11:25] (current)
tem created
Line 1: Line 1:
 +<embed ..:​contents/>​====== getAccountDetails ======
  
 +Retrieves information about merchant account.
 +
 +===== Description =====
 +
 +This method will return details about your merchant account. It is useful for determining what functionality your account supports.
 +
 +For example this method can help you determine if your account includes support for check processing, multiple currencies or cardholder authentication.
 +
 +See also [[getSupportedCurrencies]] ​
 +
 +===== Syntax =====
 +
 +[[..:​objects:​AccountDetails]] **getAccountDetails** ( [[..:​objects:​ueSecurityToken]] Token ) 
 +
 +
 +
 +
 +===== Arguments =====
 +
 +^Type    ^Name     ​^Description ​   ^
 +|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction. |
 +
 +
 +===== Return Value =====
 +
 +|[[..:​objects:​AccountDetails]] |Returns details pertaining to the merchant account requested, including the name of their credit card platform, the merchant'​s type of industry, whether the merchant account supports check processing, type of cardholder authentication and an array of currencies supported by the account. |
 +
 +===== Examples =====
 +
 +
 +==== PHP ====
 +
 +For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​howto:​php|PHP Soap How-to]].
 +
 +<code php>
 +<?​php ​
 +
 +try { 
 +
 +  $details = $client->​getAccountDetails($token); ​
 +             
 +
 +
 +catch(SoapFault $e) { 
 +         
 +  echo "soap fault: " .$e->​getMessage(); ​
 +        ​
 +}         
 +
 +?> 
 +</​code>​
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +try {
 +  AccountDetails Account = new AccountDetails();​
 +  Account = client.getAccountDetails(token);​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
 +
 +==== Visual Basic (.Net) ====
 +<code vb>
 +Dim response As usaepay.AccountDetails = New usaepay.AccountDetails
 +        response = client.getAccountDetails(token)
 +        MsgBox(response.CreditCardPlatform)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +            usaepay.AccountDetails merchant = new usaepay.AccountDetails();​
 +
 +            try 
 +            {
 +                merchant = client.getAccountDetails(token);​
 +                MessageBox.Show(string.Concat(merchant.CreditCardPlatform));​
 +            }
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
 +
 +==== XML ====
 +
 +<code xml> ​       ​
 +<?xml version="​1.0"​ encoding="​UTF-8"?> ​
 +<​SOAP-ENV:​Envelope xmlns:​SOAP-ENV="​http://​schemas.xmlsoap.org/​soap/​envelope/" ​
 +xmlns:​ns1="​urn:​usaepay"​ xmlns:​xsd="​http://​www.w3.org/​2001/​XMLSchema" ​
 +xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance" ​
 +xmlns:​SOAP-ENC="​http://​schemas.xmlsoap.org/​soap/​encoding/" ​
 +SOAP-ENV:​encodingStyle="​http://​schemas.xmlsoap.org/​soap/​encoding/"> ​
 +<​SOAP-ENV:​Body> ​
 +<​ns1:​getAccountDetails> ​
 +<Token xsi:​type="​ns1:​ueSecurityToken">​
 +<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​
 +<PinHash xsi:​type="​ns1:​ueHash">​
 +<​HashValue xsi:​type="​xsd:​string">​11ac55b0a0b59f8f028dbf85bc32266fa973dd0e</​HashValue>​
 +<Seed xsi:​type="​xsd:​string">​12678150211876663375</​Seed>​
 +<Type xsi:​type="​xsd:​string">​sha1</​Type>​
 +</​PinHash>​
 +<​SourceKey xsi:​type="​xsd:​string">​HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</​SourceKey>​
 +</​Token>​
 +</​ns1:​getAccountDetails> ​
 +</​SOAP-ENV:​Body> ​
 +</​SOAP-ENV:​Envelope>​
 +</​code>​
 +
 +
 +===== Change History =====
 +
 +^ Version ^ Change ^
 +| [[developer:​soap-1.1:​methods:​getaccountdetails|1.1]] | Method added prior to soap-1.1 |
developer/soap-1.6/methods/getaccountdetails.txt ยท Last modified: 2012/08/04 11:25 by tem

Page Tools