Disable the recurring billing for a customer specified by CustNum.
This method allows you to stop a customer's recurring billing cycle using the CustNum (unique customer number assigned by the gateway) as a reference. If you have lost or cannot remember the customer's CustNum, use the searchCustomerID method to retrieve it.
You can resume a customer's recurring billing cycle at any time using the enableCustomer method.
boolean disableCustomer ( ueSecurityToken Token, integer CustNum )
Type |
Name |
Description |
Token |
Merchant security token: used to identify merchant and validate transaction. |
|
integer |
CustNum |
A unique customer number assigned by the gateway. |
boolean |
Returns confirmation of the disable recurring billing request only if request is successful. If request fails, an exception will be thrown. |
<?php
try {
$custnum='56805';
print_r($client->disableCustomer($token,$custnum));
}
catch(SoapFault $e) {
echo $e->getMessage();
}
?>
try {
//Set CustNum for the Customer that you want to disable
BigInteger CustNum = new BigInteger("12345678");
client.disableCustomer(token, CustNum);
} catch (Exception e) {
System.out.println("Soap Exception: " + e.getMessage());
}
Dim custNum As String
custNum = "103125"
Dim response As Boolean
response = client.disableCustomer(token, custNum)
MsgBox(response)
string custNum = "89147";
Boolean response;
try
{
response = client.deleteCustomer(token, custNum);
if (response)
{
MessageBox.Show(string.Concat("Succesfull"));
}
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}