public function execute($data) {

        try {
            $config = $this->sanitizeConfig($data);
            $this->isConciliate($config);
            if (! $this->doCancel($config))
                throw new \Exception('impossible to cancel.');

            $this->doUpdates($config);
            return true;
        } catch (\Exception $exception) {
            throw $exception;
        }
    }
public function execute($data) {

        try {
            $config = $this->sanitizeConfig($data);
            $this->isConciliate($config);
            if (! $this->doCancel($config))
                throw new \Exception('impossible to cancel.');

            $this->doUpdates($config);
            return true;
        } catch (\Exception $exception) {
            throw $exception;
        }
    }
public function execute ( $ data ) { try { $ config = $ this -> sanitizeConfig ( $ data ) ; $ this -> isConciliate ( $ config ) ; if ( ! $ this -> doCancel ( $ config ) ) throw new \ Exception ( 'impossible to cancel.' ) ; $ this -> doUpdates ( $ config ) ; return true ; } catch ( \ Exception $ exception ) { throw $ exception ; } }
Cancels one transaction

@param $data
@return bool
@throws \Exception
Cancels one transaction