developer:soap:methods:updatemerchant

Soap API v1.2

updateMerchant

Reseller only method.

Update details in a merchant's account.

Description

Allows a reseller to update the information on file for a merchant account.

The following fields may be updated via this method:

  • Merchant ID
  • Contact
  • Company
  • Street
  • Street 2
  • City
  • State
  • Zip
  • Country
  • Email
  • Fax
  • Phone Number

See also addMerchantApplication, getMerchantApplicationStatus, getMerchant, deleteMerchant, searchMerchants, getMerchantSummary, getMerchant

Syntax

boolean updateMerchant ( ueSecurityToken Token, integer MerchantID, MerchantObject MerchantObject )

Arguments

Type Name Description
ueSecurityToken Token Reseller security token, used to identify reseller and validate request.
integer MerchantID Merchant ID number assigned by the gateway to an active merchant.
MerchantObject MerchantObject Merchant account information including: ID, Company, Contact, Address, Email, Phone, and Fax.

Return Value

boolean Returns confirmation of update only if successful. If update fails, an exception will be thrown.

Examples

PHP

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

<?php 
 
try { 
 
  $objMerchant=new MerchantObject(); 
  $MerchantID='2'; 
  print_r($objMerchant); 
 
  $res=$client->updateMerchant($restoken,$MerchantID,$objMerchant); 
  print_r($res);     
 
  $this->assertEquals($res->MerchID,$MerchantID); 
 
  $this->assertEquals($res->Zip, '12311'); 
 
  } 
 
catch (SoapFault $e) { 
  echo $client->__getLastRequest(); 
  echo $client->__getLastResponse(); 
  die("updateMerchant failed: " .$e->getMessage()); 
} 
 
?> 
developer/soap/methods/updatemerchant.txt · Last modified: 2009/07/06 10:55 by epouchak

Page Tools