getMerchantApplication

Reseller only method

Description

This method pulls the application for a pending merchant.  Requires the gateway assigned ApplicationID. Returns a MerchantApplication object containing application information. 

See also  getMerchantApplicationStatus 

Syntax

MerchantApplication getMerchantApplication ( ueSecurityToken Token, integer ApplicationID ) 

Arguments

Type     Name     Description    
ueSecurityToken Token Reseller security token, used to identify reseller and validate request.
integer ApplicationID Application ID number assigned by the gateway

Return Value

MerchantApplication Returns merchant object

Examples

PHP

For directions on how to set up the WSDL link, create "$restoken" and "$client", go to PHP Soap How-to.

    <?php>

    try { 

      $ApplicationID = 2; 

      $Application=$client->getMerchantApplication($restoken, $ApplicationID); 

      print_r($Application);  
                             
    } 

    catch (SoapFault $e) { 

      echo $client->__getLastRequest(); 
      echo $client->__getLastResponse(); 
      die("getMerchantApplication failed: " .$e->getMessage()); 
      } 

    ?> 

.NET C

    string appID = "10943080";
                reseller.MerchantApplication result = new reseller.MerchantApplication();

                try
                {
                    result = reclient.getMerchantApplication(retoken, appID);
                    MessageBox.Show(string.Concat(result.ContactInfo.Contact));
                }
                catch (Exception err) {
                    MessageBox.Show(err.Message);
                }

Java

    BigInteger apprefnum = new BigInteger("865");
    MerchantApplication merchapp;
    merchapp = client.getMerchantApplication(restoken, apprefnum);