developer:soap-1.1:methods:getaccountdetails

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); 
 
  $this->assertEquals($details->CheckPlatform, 'Vericheck'); 
 
  $this->assertEquals($details->CreditCardPlatform, 'Test Bed'); 
 
  $this->assertEquals($details->Industry, 'eCommerce'); 
 
  $this->assertEquals(count($details->SupportedCurrencies), 0); 
 
} 
 
catch(SoapFault $e) { 
 
  die("soap fault: " .$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.1/methods/getaccountdetails.txt · Last modified: 2010/10/22 10:32 by irina

Page Tools