From 9484d824b99698809c6045ff2c932d835556a78e Mon Sep 17 00:00:00 2001 From: Serfe <153220375+Serfe-com@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:32:15 -0300 Subject: [PATCH 1/2] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7a54a51..eb54902 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "phpunit/phpunit": "^8" }, "require": { - "guzzlehttp/guzzle": "^6.3", - "psr/log": "^1.0.1" + "guzzlehttp/guzzle": "^7.0", + "psr/log": "^3.0.0" } } From 0a42016cbc69b8e4bdcf1d261c4812fbef939774 Mon Sep 17 00:00:00 2001 From: Serfe <153220375+Serfe-com@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:33:12 -0300 Subject: [PATCH 2/2] Update PaymentClient.php --- src/PaymentClient.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PaymentClient.php b/src/PaymentClient.php index 026eb73..1d56963 100644 --- a/src/PaymentClient.php +++ b/src/PaymentClient.php @@ -92,7 +92,6 @@ public function charge(Charge $charge, string $requestId = "") : ResponseInterfa } $request = ChargeOperations::createChargeRequest($charge, $requestId, $this->getContext()); - $response = $this->httpClient->send($request); $this->before($request, $this); $response = $this->httpClient->send($request); $this->after($response, $this); @@ -107,7 +106,6 @@ public function voidChargeTransaction(string $chargeRequestId, string $requestId } $request = ChargeOperations::voidTransaction($chargeRequestId, $requestId, $this->getContext()); - $this->httpClient->send($request); $this->before($request, $this); $response = $this->httpClient->send($request); $this->after($response, $this);