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" } } 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);