app/code/community/Adyen/Payment/Model/Api.php
public function disableRecurringContract($recurringDetailReference, $shopperReference, $store = null)
    {
        $merchantAccount = $this->_helper()->getConfigData('merchantAccount', null, $store);

        $request = array(
            "action" => "Recurring.disable",
            "disableRequest.merchantAccount" => $merchantAccount,
            "disableRequest.shopperReference" => $shopperReference,
            "disableRequest.recurringDetailReference" => $recurringDetailReference
        );

        $result = $this->_doRequest($request, $store);

        // convert result to utf8 characters
        $result = utf8_encode(urldecode($result));

        if ($result != "disableResult.response=[detail-successfully-disabled]") {
            Adyen_Payment_Exception::throwException(Mage::helper('adyen')->__($result));
        }

        return true;
    }
public function disableRecurringContract($recurringDetailReference, $shopperReference, $store = null)
    {
        $merchantAccount = $this->_helper()->getConfigData('merchantAccount', null, $store);

        $request = array(
            "action" => "Recurring.disable",
            "disableRequest.merchantAccount" => $merchantAccount,
            "disableRequest.shopperReference" => $shopperReference,
            "disableRequest.recurringDetailReference" => $recurringDetailReference
        );

        $result = $this->_doRequest($request, $store);

        // convert result to utf8 characters
        $result = utf8_encode(urldecode($result));

        if ($result != "disableResult.response=[detail-successfully-disabled]") {
            Adyen_Payment_Exception::throwException(Mage::helper('adyen')->__($result));
        }

        return true;
    }
public function disableRecurringContract ( $ recurringDetailReference , $ shopperReference , $ store = null ) { $ merchantAccount = $ this -> _helper ( ) -> getConfigData ( 'merchantAccount' , null , $ store ) ; $ request = array ( "action" => "Recurring.disable" , "disableRequest.merchantAccount" => $ merchantAccount , "disableRequest.shopperReference" => $ shopperReference , "disableRequest.recurringDetailReference" => $ recurringDetailReference ) ; $ result = $ this -> _doRequest ( $ request , $ store ) ; // convert result to utf8 characters $ result = utf8_encode ( urldecode ( $ result ) ) ; if ( $ result != "disableResult.response=[detail-successfully-disabled]" ) { Adyen_Payment_Exception :: throwException ( Mage :: helper ( 'adyen' ) -> __ ( $ result ) ) ; } return true ; }
Disable a recurring contract

@param string $recurringDetailReference
@param string $shopperReference
@param int|Mage_Core_model_Store|null $store

@throws Adyen_Payment_Exception
@return bool
Disable a recurring contract