| @@ 300-304 (lines=5) @@ | ||
| 297 | { |
|
| 298 | if ($command === self::VRC_IPN) { |
|
| 299 | ||
| 300 | if ($request === null && Yii::$app instanceof \yii\web\Application) { |
|
| 301 | $request = Yii::$app->getRequest(); |
|
| 302 | } else { |
|
| 303 | throw new InvalidArgumentException('Request instance arg must be set to verify return request is valid or not!'); |
|
| 304 | } |
|
| 305 | ||
| 306 | $content = $this->getHttpClient()->post(self::VERIFY_IPN_URL, $request->post())->send()->getContent(); |
|
| 307 | ||
| @@ 246-250 (lines=5) @@ | ||
| 243 | if (in_array($command, $this->verifyRequestCommands(), true)) { |
|
| 244 | $client = $this->getClient($clientId); |
|
| 245 | ||
| 246 | if ($request === null && Yii::$app instanceof \yii\web\Application) { |
|
| 247 | $request = Yii::$app->getRequest(); |
|
| 248 | } else { |
|
| 249 | throw new InvalidArgumentException('Request instance arg must be set to verify return request is valid or not!'); |
|
| 250 | } |
|
| 251 | ||
| 252 | $data = $this->getVerifyRequestData($command, $request); |
|
| 253 | /** @var VerifiedData $requestData */ |
|