developer:soap-1.1:methods:disablecustomer

disableCustomer

Disable the recurring billing for a customer specified by CustNum.

Description

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.

See also runCustomerTransaction, enableCustomer, deleteCustomer, searchCustomerID, getCustomer, searchCustomers, getCustomerHistory, addCustomer, addCustomerPaymentMethod, deleteCustomerPaymentMethod, updateCustomer, quickUpdateCustomer

Syntax

boolean disableCustomer ( ueSecurityToken Token, integer CustNum )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer CustNum A unique customer number assigned by the gateway.

Return Value

boolean Returns confirmation of the disable recurring billing request only if request is successful. If request 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 { 
 
  $custnum='56805'; 
 
  print_r($tran->disableCustomer($token,$custnum)); 
 
  } 
 
catch(SoapFault $e) { 
 
  echo $e->getMessage(); 
  echo "\n\nRequest: " . $tran->__getLastRequest(); 
  echo "\n\nResponse: " . $tran->__getLastResponse(); 
 
  } 
 
?> 

.NET VB

Dim custNum As String
        custNum = "120221"
 
        Dim response As Boolean
        response = client.disableCustomer(token, custNum)
        MsgBox(response)

.NET C#

 string custNum = "109100";
 
            Boolean response;
 
            try
            {
                response = client.disableCustomer(token, custNum);
                if (response)
                {
                    MessageBox.Show(string.Concat("Succesfull"));
                }
 
            }
 
            catch (Exception err)
            {
                MessageBox.Show(err.Message);
            }
developer/soap-1.1/methods/disablecustomer.txt · Last modified: 2010/10/21 15:26 by irina

Page Tools