public function handleWebhook(Request $request)
    {
        try {
            $webhook = $this->parseBraintreeNotification($request);
        } catch (Exception $e) {
            return;
        }

        $method = 'handle'.Str::studly(str_replace('.', '_', $webhook->kind));

        if (method_exists($this, $method)) {
            return $this->{$method}($webhook);
        }

        return $this->missingMethod();
    }
public function handleWebhook(Request $request)
    {
        try {
            $webhook = $this->parseBraintreeNotification($request);
        } catch (Exception $e) {
            return;
        }

        $method = 'handle'.Str::studly(str_replace('.', '_', $webhook->kind));

        if (method_exists($this, $method)) {
            return $this->{$method}($webhook);
        }

        return $this->missingMethod();
    }
public function handleWebhook ( Request $ request ) { try { $ webhook = $ this -> parseBraintreeNotification ( $ request ) ; } catch ( Exception $ e ) { return ; } $ method = 'handle' . Str :: studly ( str_replace ( '.' , '_' , $ webhook -> kind ) ) ; if ( method_exists ( $ this , $ method ) ) { return $ this -> { $ method } ( $ webhook ) ; } return $ this -> missingMethod ( ) ; }
Handle a Braintree webhook call.

@param  \Illuminate\Http\Request  $request
@return \Symfony\Component\HttpFoundation\Response
Handle a Braintree webhook call .