developer:soap:methods:getaccountdetails

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:methods:getaccountdetails [2009/01/19 11:16]
hmcgowan
developer:soap:methods:getaccountdetails [2009/09/08 12:34]
charlie
Line 1: Line 1:
-====== getAccountDetails ======+<embed ..:​contents/>​====== getAccountDetails ======
  
 Retrieves information about merchant account. Retrieves information about merchant account.
Line 13: Line 13:
 ===== Syntax ===== ===== Syntax =====
  
-[[developer:​soap:​objects:​AccountDetails]] **getAccountDetails** ( [[developer:​soap:​objects:​ueSecurityToken]] Token ) +[[..:​objects:​AccountDetails]] **getAccountDetails** ( [[..:​objects:​ueSecurityToken]] Token ) 
  
  
Line 21: Line 21:
  
 ^Type    ^Name     ​^Description ​   ^ ^Type    ^Name     ​^Description ​   ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction. |+|[[..:​objects:​ueSecurityToken]] |Token |Merchant security token: used to identify merchant and validate transaction. |
  
  
 ===== Return Value ===== ===== Return Value =====
  
-|[[developer:​soap:​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. |+|[[..:​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 ===== ===== Examples =====
Line 33: Line 33:
 ==== PHP ==== ==== PHP ====
  
-For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[developer:​soap:​howto:​php|PHP Soap How-to]].+For directions on how to set up the WSDL link, create "​$token"​ and "​$client",​ go to [[..:​howto:​php|PHP Soap How-to]].
  
 <code php> <code php>
Line 41: Line 41:
  
   $details = $client->​getAccountDetails($token); ​   $details = $client->​getAccountDetails($token); ​
-              
-  $this->​assertEquals($details->​CheckPlatform,​ '​Vericheck'​); ​ 
- 
-  $this->​assertEquals($details->​CreditCardPlatform,​ 'Test Bed'​); ​ 
- 
-  $this->​assertEquals($details->​Industry,​ '​eCommerce'​); ​ 
- 
-  $this->​assertEquals(count($details->​SupportedCurrencies),​ 0);  
                            
  
Line 54: Line 46:
 catch(SoapFault $e) {  catch(SoapFault $e) { 
                    
-  ​die("soap fault: " .$e->​getMessage()); +  ​echo "soap fault: " .$e->​getMessage(); ​
         ​         ​
 }          }         
Line 61: Line 53:
 </​code>​ </​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>​
  
 ==== XML ==== ==== XML ====
developer/soap/methods/getaccountdetails.txt ยท Last modified: 2009/09/08 12:34 by charlie

Page Tools