lib/Braintree/PaymentMethodGateway.php
public function find($token)
    {
        $this->_validateId($token);
        try {
            $path = $this->_config->merchantPath() . '/payment_methods/any/' . $token;
            $response = $this->_http->get($path);
            return PaymentMethodParser::parsePaymentMethod($response);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound(
                'payment method with token ' . $token . ' not found'
            );
        }
    }
public function find($token)
    {
        $this->_validateId($token);
        try {
            $path = $this->_config->merchantPath() . '/payment_methods/any/' . $token;
            $response = $this->_http->get($path);
            return PaymentMethodParser::parsePaymentMethod($response);
        } catch (Exception\NotFound $e) {
            throw new Exception\NotFound(
                'payment method with token ' . $token . ' not found'
            );
        }
    }
public function find ( $ token ) { $ this -> _validateId ( $ token ) ; try { $ path = $ this -> _config -> merchantPath ( ) . '/payment_methods/any/' . $ token ; $ response = $ this -> _http -> get ( $ path ) ; return PaymentMethodParser :: parsePaymentMethod ( $ response ) ; } catch ( Exception \ NotFound $ e ) { throw new Exception \ NotFound ( 'payment method with token ' . $ token . ' not found' ) ; } }
find a PaymentMethod by token

@param string $token payment method unique id
@return CreditCard|PayPalAccount
@throws Exception\NotFound
find a PaymentMethod by token