Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SilentPost.php
Go to the documentation of this file.
1 <?php
8 
12 
14 {
21  return null;
22  }
23 
27  public function validateForCsrf(RequestInterface $request): ?bool
28  {
29  return true;
30  }
31 
37  public function execute()
38  {
39  $data = $this->getRequest()->getPostValue();
40  if (isset($data['INVNUM'])) {
42  $paymentModel = $this->_payflowModelFactory->create();
43  try {
44  $paymentModel->process($data);
45  } catch (\Exception $e) {
46  $this->_logger->critical($e);
47  }
48  }
49  }
50 }
validateForCsrf(RequestInterface $request)
Definition: SilentPost.php:27
Definition: SilentPost.php:13
createCsrfValidationException(RequestInterface $request)
Definition: SilentPost.php:18