Skip to content

Commit

Permalink
Removed 2.3 compatibility due to problems with PHP 7.0 and M2.2.6 and…
Browse files Browse the repository at this point in the history
… the CsrfValidation in M2.3
  • Loading branch information
hilrob committed May 23, 2019
1 parent eaba52d commit 466d0b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 60 deletions.
42 changes: 0 additions & 42 deletions Controller/Webhooks/Twothree.php

This file was deleted.

14 changes: 0 additions & 14 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,6 @@ public function handleException(\Exception $e)
*/
public function getWebhooksUrl()
{
$version = $this->productMetaData->getVersion();
if (version_compare($version, '2.3.0', '>=')) {
return str_replace(
'http://',
'https://',
$this->_getUrl(
'paypalplus/webhooks/twothree/',
[
'_forced_secure' => true,
'_nosid' => true,
]
)
);
}
return str_replace(
'http://',
'https://',
Expand Down
3 changes: 3 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
==== 1.2.4 ====
Removed 2.3 compatibility due to problems with PHP 7.0 and M2.2.6 and the CsrfValidation in M2.3

==== 1.2.3 ====
Renamed PayPal-Plus to PayPal PLUS

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require": {
"php": "~7.0.0|~7.1.0|~7.2.0",
"paypal/rest-api-sdk-php": "^1.6",
"magento/module-paypal": "100.0.*|100.1.*|100.2.*|100.3.*"
"magento/module-paypal": "100.0.*|100.1.*|100.2.*"
},
"authors": [
{
Expand All @@ -19,7 +19,7 @@
}
],
"type": "magento2-module",
"version": "1.2.3",
"version": "1.2.4",
"license": [
"OSL-3.0"
],
Expand Down
4 changes: 2 additions & 2 deletions marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": "~7.0.0|~7.1.0|~7.2.0",
"paypal/rest-api-sdk-php": "^1.6",
"magento/module-paypal": "100.0.*|100.1.*|100.2.*|100.3.*"
"magento/module-paypal": "100.0.*|100.1.*|100.2.*"
},
"authors": [
{
Expand All @@ -18,7 +18,7 @@
}
],
"type": "magento2-module",
"version": "1.2.3",
"version": "1.2.4",
"license": [
"OSL-3.0"
],
Expand Down

0 comments on commit 466d0b0

Please sign in to comment.