Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
(MAGE2-323)[change]
Browse files Browse the repository at this point in the history
- remove PHP 7.0 support
- remove support for magento versions smaller then 2.3.
  • Loading branch information
Ryouzanpaku committed Sep 1, 2020
1 parent 029a27f commit 66fd06b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
27 changes: 21 additions & 6 deletions Controller/HgwAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Magento\Sales\Model\Order\Email\Sender\OrderSender;
use Magento\Sales\Model\Order\Email\Sender\OrderCommentSender;
use Magento\Sales\Model\Order\Email\Sender\InvoiceSender;
use Netresearch\Compatibility\Controller\CsrfAware\Action as CsrfAwareAction;
use Magento\Framework\App\CsrfAwareActionInterface;

/**
* Abstract controller class
Expand All @@ -21,7 +21,7 @@
* @subpackage Magento2
* @category Magento2
*/
abstract class HgwAbstract extends CsrfAwareAction
abstract class HgwAbstract extends CsrfAwareActionInterface
{
protected $resultPageFactory;
protected $logger;
Expand Down Expand Up @@ -144,14 +144,29 @@ protected function getQuote()
return $this->_quote;
}

protected function getCsrfExceptionResponse(RequestInterface $request)
/**
* Create exception in case CSRF validation failed.
* Return null if default exception will suffice.
*
* @param RequestInterface $request
*
* @return InvalidRequestException|null
*/
public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
{
return null;
}

protected function proxyValidateForCsrf(RequestInterface $request)
/**
* Perform custom request validation.
* Return null if default validation is needed.
*
* @param RequestInterface $request
*
* @return bool|null
*/
public function validateForCsrf(RequestInterface $request): ?bool
{
return true;
}


}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![Latest Version on Packagist](https://img.shields.io/packagist/v/heidelpay/magento2.svg?style=flat-square)](https://packagist.org/packages/heidelpay/magento2)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/fb5b516ad21f44a591a58761a8c3ef42)](https://www.codacy.com/app/heidelpay/magento2/dashboard)
[![PHP 7.0](https://img.shields.io/badge/php-7.0-blue.svg)](http://www.php.net)
[![PHP 7.1](https://img.shields.io/badge/php-7.1-blue.svg)](http://www.php.net)
[![PHP 7.2](https://img.shields.io/badge/php-7.2-blue.svg)](http://www.php.net)
[![PHP 7.3](https://img.shields.io/badge/php-7.3-blue.svg)](http://www.php.net)
[![PHP 7.4](https://img.shields.io/badge/php-7.4-blue.svg)](http://www.php.net)

![Logo](http://dev.heidelpay.com/devHeidelpay_400_180.jpg)

Expand Down
23 changes: 11 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
"name": "heidelpay/magento2",
"description": "This extension for Magento 2 provides a direct integration of the Heidelpay payment methods to your Magento 2 shop.",
"require": {
"php": "~7.0.0|~7.1.0 |~7.2.0|~7.3.0|~7.4.0",
"magento/module-config": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-store": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-checkout": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-sales": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-quote": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-customer": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-payment": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/module-backend": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"magento/framework": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0",
"php": "~7.1.0 |~7.2.0|~7.3.0|~7.4.0",
"magento/module-config": "^102.0.0 | ^103.0.0",
"magento/module-store": "^102.0.0 | ^103.0.0",
"magento/module-checkout": "^102.0.0 | ^103.0.0",
"magento/module-sales": "^102.0.0 | ^103.0.0",
"magento/module-quote": "^102.0.0 | ^103.0.0",
"magento/module-customer": "^102.0.0 | ^103.0.0",
"magento/module-payment": "^102.0.0 | ^103.0.0",
"magento/module-backend": "^102.0.0 | ^103.0.0",
"magento/framework": "^102.0.0 | ^103.0.0",
"heidelpay/php-message-code-mapper": "~1.0",
"heidelpay/php-basket-api": "~1.0",
"heidelpay/php-payment-api": "~1.7",
"ext-json": "*",
"netresearch/module-compatibility-m2": "*",
"ext-bcmath": "*"
},
"require-dev": {
Expand All @@ -26,7 +25,7 @@
"allure-framework/allure-phpunit": "~1.2.0"
},
"suggest": {
"magento/module-checkout-agreements": "^100.0.0 | ^101.0.0 | ^102.0.0 | ^103.0.0"
"magento/module-checkout-agreements": "^102.0.0 | ^103.0.0"
},
"repositories": [
{
Expand Down

0 comments on commit 66fd06b

Please sign in to comment.