Reseller only method.
Request deletion of merchant account.
This method will flag a merchant for deletion. Once the deletion request is verified and approved by the gateway, the merchant account will be closed and the merchant will no longer be able to process transactions or log in to the Merchant Console.
The reason argument should include any details, such as contact request details, reason for deletion, etc. that may speed up the deletion request verification process.
See also addMerchantApplication, getMerchantApplicationStatus, getMerchant, updateMerchant, searchMerchants, getMerchantSummary
boolean deleteMerchant ( ueSecurityToken Token, integer MerchantID, string Reason )
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 |
string | Reason | Any information relevant to the delete merchant account request. You may wish to include the following: contact request details, reason for deletion request, any other relevant information. |
boolean | Returns confirmation of your request only if successful. If request 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 { $MerchantID=2; $Reason='Testing Soap API'; $res=$client->deleteMerchant($restoken,$MerchantID,$Reason); print_r($res); $this->assertEquals($res,true); $this->assertEquals($res->Zip, '12311'); } catch (SoapFault $e) { echo $client->__getLastRequest(); echo $client->__getLastResponse(); die("deleteMerchant failed: " .$e->getMessage()); } ?>
string merchantID = "2"; string reason = "Test reason"; Boolean response; try { response = reclient.deleteMerchant(retoken, merchantID, reason); MessageBox.Show(string.Concat(response)); } catch (Exception err) { MessageBox.Show(err.Message); }
Version | Change |
---|---|
1.1 | Method added prior to soap-1.1 |