public function validateAndParseWebhookNotificationFromRequest(\Symfony\Component\HttpFoundation\Request $request) {
        $json_data = json_decode($request->getContent(), true);
        if (!is_array($json_data)) { throw new AuthorizationException("Invalid webhook data received"); }

        // make sure the message is signed properly
        //   throws an exception if invalid
        $this->validateWebhookNotification($json_data);

        return $this->parseWebhookNotificationData($json_data);
    }
public function validateAndParseWebhookNotificationFromRequest(\Symfony\Component\HttpFoundation\Request $request) {
        $json_data = json_decode($request->getContent(), true);
        if (!is_array($json_data)) { throw new AuthorizationException("Invalid webhook data received"); }

        // make sure the message is signed properly
        //   throws an exception if invalid
        $this->validateWebhookNotification($json_data);

        return $this->parseWebhookNotificationData($json_data);
    }
public function validateAndParseWebhookNotificationFromRequest ( \ Symfony \ Component \ HttpFoundation \ Request $ request ) { $ json_data = json_decode ( $ request -> getContent ( ) , true ) ; if ( ! is_array ( $ json_data ) ) { throw new AuthorizationException ( "Invalid webhook data received" ) ; } // make sure the message is signed properly //   throws an exception if invalid $ this -> validateWebhookNotification ( $ json_data ) ; return $ this -> parseWebhookNotificationData ( $ json_data ) ; }
Reads the input from a Symfony request and returns the notification
Throws an AuthorizationException if validation fails
@return array notification
Reads the input from a Symfony request and returns the notification Throws an AuthorizationException if validation fails