rawFactory->create(); try { $data = $this->parser->parse( (string)$this->getRequest()->getContent(), (array)$this->getRequest()->getParams() ); $this->processor->process($data, true); return $result->setContents('receive-ok'); } catch (\Throwable $exception) { $this->logger->warning('Oceanpayment asynchronous callback was rejected', [ 'exception' => $exception, ]); $this->getResponse()->setHttpResponseCode(400); return $result->setContents('invalid'); } } }