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 Newtek Gateway Java library. For directions on how to install the library and create the token/client objects, go to the Java JAX-WS Howto.
try {
AccountDetails Account = new AccountDetails();
Account = client.getAccountDetails(token);
} catch (Exception e) {
System.out.println("Soap Exception: " + e.getMessage());
}
Visual Basic (.Net)
Dim response As newtek.AccountDetails = New newtek.AccountDetails
response = client.getAccountDetails(token)
MsgBox(response.CreditCardPlatform)
.NET C
newtek.AccountDetails merchant = new newtek.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:newtek" 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>