Omnipay\Alipay\Requests\AopNotifyRequest::verifyNotifyId PHP Method

verifyNotifyId() protected method

protected verifyNotifyId ( )
    protected function verifyNotifyId()
    {
        if (!$this->getPartner()) {
            throw new InvalidRequestException('The partner is required for notify_id verify');
        }
        $request = new LegacyVerifyNotifyIdRequest($this->httpClient, $this->httpRequest);
        $request->setPartner($this->getPartner());
        $request->setNotifyId($this->params->get('notify_id'));
        /**
         * @var VerifyNotifyIdResponse $response
         */
        $response = $request->send();
        if (!$response->isSuccessful()) {
            throw new InvalidRequestException('The notify_id is not trusted');
        }
    }