Reseller only method.
Update details in a merchant's account.
Allows a reseller to update the information on file for a merchant account.
The following fields may be updated via this method:
See also addMerchantApplication, getMerchantApplicationStatus, getMerchant, deleteMerchant, searchMerchants, getMerchantSummary, getMerchant
boolean updateMerchant ( ueSecurityToken Token, integer MerchantID, MerchantObject MerchantObject )
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. |
boolean | Returns confirmation of update only if successful. If update fails, an exception will be thrown. |
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()); } ?>