public function cancelImmediately($id)
    {
        $service = $this->getService();
        $rawData = !empty($this->_params)
            ? $this->getRawData(array('subscription' => $this->_params))
            : null;

        $response = $service->request('subscriptions/' . (int)$id, 'DELETE', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['subscription'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function cancelImmediately($id)
    {
        $service = $this->getService();
        $rawData = !empty($this->_params)
            ? $this->getRawData(array('subscription' => $this->_params))
            : null;

        $response = $service->request('subscriptions/' . (int)$id, 'DELETE', $rawData);
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['subscription'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function cancelImmediately ( $ id ) { $ service = $ this -> getService ( ) ; $ rawData = ! empty ( $ this -> _params ) ? $ this -> getRawData ( array ( 'subscription' => $ this -> _params ) ) : null ; $ response = $ service -> request ( 'subscriptions/' . ( int ) $ id , 'DELETE' , $ rawData ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'subscription' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Set the given subscription ID to be canceled immediately

@param int $id

@return Subscription
@see Subscription::setCancellationMessage()
Set the given subscription ID to be canceled immediately