1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\Authorizenet\Controller\Directpost\Payment;
- use Magento\Framework\App\CsrfAwareActionInterface;
- use Magento\Framework\App\Request\InvalidRequestException;
- use Magento\Framework\App\RequestInterface;
- use Magento\Authorizenet\Controller\Directpost\Payment;
- use Magento\Framework\App\Action\HttpGetActionInterface;
- use Magento\Framework\App\Action\HttpPostActionInterface;
- /**
- * Class Response
- * @deprecated 100.3.1 Authorize.net is removing all support for this payment method
- */
- class Response extends Payment implements CsrfAwareActionInterface, HttpGetActionInterface, HttpPostActionInterface
- {
- /**
- * @inheritDoc
- */
- public function createCsrfValidationException(
- RequestInterface $request
- ): ?InvalidRequestException {
- return null;
- }
- /**
- * @inheritDoc
- */
- public function validateForCsrf(RequestInterface $request): ?bool
- {
- return true;
- }
- /**
- * Response action.
- *
- * Action for Authorize.net SIM Relay Request.
- *
- * @return \Magento\Framework\Controller\ResultInterface
- */
- public function execute()
- {
- $this->_responseAction('frontend');
- return $this->resultFactory->create(\Magento\Framework\Controller\ResultFactory::TYPE_PAGE);
- }
- }
|