src/paySystems/YandexKassaPaySystem.php
public function checkRequest($request)
    {
        if ($this->security_type == static::SECURITY_MD5) {
            if ($this->checkRequestMD5($request)) {
                \Yii::info("checkRequest true", YandexKassaPaySystem::class);
                return true;
            }
        } else {
            if ($yandexKassa->security_type == YandexKassaPaySystem::SECURITY_PKCS7) {
                // Checking for a certificate sign. If the checking fails, respond with "200" error code.
                if (($request = $this->verifySign()) == null) {
                    $response = $this->buildResponse($this->action, null, 200);
                    $this->sendResponse($response);
                }
                $this->log("Request: ".print_r($request, true));

                //TODO:; make it's
                \Yii::error('SECURITY_PKCS7 — todo:: not realized', YandexKassaPaySystem::class);
            }
        }

        \Yii::info("checkRequest true", YandexKassaPaySystem::class);
        return true;
    }
public function checkRequest($request)
    {
        if ($this->security_type == static::SECURITY_MD5) {
            if ($this->checkRequestMD5($request)) {
                \Yii::info("checkRequest true", YandexKassaPaySystem::class);
                return true;
            }
        } else {
            if ($yandexKassa->security_type == YandexKassaPaySystem::SECURITY_PKCS7) {
                // Checking for a certificate sign. If the checking fails, respond with "200" error code.
                if (($request = $this->verifySign()) == null) {
                    $response = $this->buildResponse($this->action, null, 200);
                    $this->sendResponse($response);
                }
                $this->log("Request: ".print_r($request, true));

                //TODO:; make it's
                \Yii::error('SECURITY_PKCS7 — todo:: not realized', YandexKassaPaySystem::class);
            }
        }

        \Yii::info("checkRequest true", YandexKassaPaySystem::class);
        return true;
    }
@param $request

@return bool