lib/Braintree/PayPalAccountGateway.php
public function find($token)
    {
        $this->_validateId($token);
        try {
            $path = $this->_config->merchantPath() . '/payment_methods/paypal_account/' . $token;
            $response = $this->_http->get($path);
            return PayPalAccount::factory($response['paypalAccount']);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound(
                'paypal account with token ' . $token . ' not found'
            );
        }

    }
public function find($token)
    {
        $this->_validateId($token);
        try {
            $path = $this->_config->merchantPath() . '/payment_methods/paypal_account/' . $token;
            $response = $this->_http->get($path);
            return PayPalAccount::factory($response['paypalAccount']);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound(
                'paypal account with token ' . $token . ' not found'
            );
        }

    }
public function find ( $ token ) { $ this -> _validateId ( $ token ) ; try { $ path = $ this -> _config -> merchantPath ( ) . '/payment_methods/paypal_account/' . $ token ; $ response = $ this -> _http -> get ( $ path ) ; return PayPalAccount :: factory ( $ response [ 'paypalAccount' ] ) ; } catch ( Exception \ NotFound $ e ) { throw new Exception \ NotFound ( 'paypal account with token ' . $ token . ' not found' ) ; } }
find a paypalAccount by token

@access public
@param string $token paypal accountunique id
@return PayPalAccount
@throws Exception\NotFound
find a paypalAccount by token