Skip to content

Commit 8910404

Browse files
committed
Added 7.2 compatability fix and js cleanup
1 parent 98a73c3 commit 8910404

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

Service/Payment/Request/Part/CardDetails.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function process(
6262
$browserInformation = new BrowserInformation(
6363
$browserDetails->getShopperIp() ?? $this->getShopperIp(),
6464
$browserDetails->getAccept() ?? $this->getAccept(),
65-
$browserDetails->getUserAgent() ?? $this->getUserAgent(),
65+
$browserDetails->getUserAgent() ?? $this->getUserAgent()
6666
);
6767
$encryptedCardDetails = new EncryptedCardDetails($cardDetails->getEncryptedCardData());
6868
$paymentCardDetails = new CardDetailsModel($browserInformation, $encryptedCardDetails);

Service/VersionService.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ public function getLatestVersion(): string
6262
$client = $this->clientFactory->create();
6363
try {
6464
/** @var Response $response */
65-
$response = $client->request(
66-
Request::HTTP_METHOD_GET,
67-
$this->getRepositoryUrl(),
68-
);
65+
$response = $client->request(Request::HTTP_METHOD_GET, $this->getRepositoryUrl());
6966

7067
$result = $this->jsonSerializer->unserialize(
7168
$response->getBody()->getContents()

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"AFL-3.0"
2525
],
2626
"require": {
27-
"php": "~7.3.0||~7.4.0||~8.1.0||~8.2.0",
27+
"php": "~7.2.0||~7.3.0||~7.4.0||~8.1.0||~8.2.0",
2828
"magento/framework": "^102|^103",
2929
"magento/module-backend": "^101.0|^102.0",
3030
"magento/module-config": "^101.0",

view/adminhtml/web/js/system/action/check-api-connection.js

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ define([
7474
merchantName = this.merchantNameContainer.val(),
7575
merchantPassword = this.merchantPasswordContainer.val(),
7676
merchantKey = this.merchantKeyContainer.val();
77-
debugger;
7877

7978
if (merchantName !== '' && merchantPassword !== '' && merchantKey !== '') {
8079
$.ajax({

0 commit comments

Comments
 (0)