lib/Braintree/DisputeGateway.php
public function find($id)
    {
        if (trim($id) == "") {
            throw new Exception\NotFound('dispute with id "' . $id . '" not found');
        }

        try {
            $path = $this->_config->merchantPath() . '/disputes/' . $id;
            $response = $this->_http->get($path);
            return Dispute::factory($response['dispute']);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound('dispute with id "' . $id . '" not found');
        }
    }
public function find($id)
    {
        if (trim($id) == "") {
            throw new Exception\NotFound('dispute with id "' . $id . '" not found');
        }

        try {
            $path = $this->_config->merchantPath() . '/disputes/' . $id;
            $response = $this->_http->get($path);
            return Dispute::factory($response['dispute']);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound('dispute with id "' . $id . '" not found');
        }
    }
public function find ( $ id ) { if ( trim ( $ id ) == "" ) { throw new Exception \ NotFound ( 'dispute with id "' . $ id . '" not found' ) ; } try { $ path = $ this -> _config -> merchantPath ( ) . '/disputes/' . $ id ; $ response = $ this -> _http -> get ( $ path ) ; return Dispute :: factory ( $ response [ 'dispute' ] ) ; } catch ( Exception \ NotFound $ e ) { throw new Exception \ NotFound ( 'dispute with id "' . $ id . '" not found' ) ; } }
Find a dispute, given a dispute ID

@param string $id
Find a dispute given a dispute ID