From 9a7fe624bbb4f98cc3b1185790b65b56234c2c2f Mon Sep 17 00:00:00 2001 From: Mohammad Mehrabani Date: Sun, 11 Aug 2024 09:45:54 +0330 Subject: [PATCH] Update TestGateway.php If there was a request with the status name, then the equality check with the word error was not done --- src/Gateways/Test/TestGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/Test/TestGateway.php b/src/Gateways/Test/TestGateway.php index 570eda4..0c5a406 100644 --- a/src/Gateways/Test/TestGateway.php +++ b/src/Gateways/Test/TestGateway.php @@ -92,7 +92,7 @@ public function purchaseUri(): string public function verify(): void { - if ($this->request['status'] ?? null === 'error') { + if (($this->request['status'] ?? null) === 'error') { throw TestException::error(-100); }