developer:soap-1.2:methods:getaccountdetails

Soap API v1.2

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

AccountDetails getAccountDetails ( ueSecurityToken Token )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.

Return Value

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 PHP Soap How-to.

<?php 
 
try { 
 
  $details = $client->getAccountDetails($token); 
 
} 
 
catch(SoapFault $e) { 
 
  echo "soap fault: " .$e->getMessage(); 
 
}         
 
?> 

Java

This example uses the USAePay Java library. For directions on how to install the library and create the token/client objects, go to either the Java JAX-RPC Howto or the Java JAX-WS Howto.

try {
  AccountDetails Account = new AccountDetails();
  Account = client.getAccountDetails(token);
} catch (Exception e) {
    System.out.println("Soap Exception: " + e.getMessage());
}

.NET VB

Dim response As usaepay.AccountDetails = New usaepay.AccountDetails
        response = client.getAccountDetails(token)
        MsgBox(response.CreditCardPlatform)

.NET 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);
            }

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">a6ad5d824a3b8f26eefe78f892d0b0a436ad33e5</HashValue> 
<Seed xsi:type="xsd:string">1193786616630608964</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> 
developer/soap-1.2/methods/getaccountdetails.txt · Last modified: 2010/10/20 12:06 by irina

Page Tools