From b061e942d06825cd6ed799bbcd047a4ffe3f726d Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Thu, 23 May 2024 14:30:47 +0200 Subject: [PATCH] Rename InvestsPump to CheckoutsPump --- .../Benzina/Pump/{InvestsPump.php => CheckoutsPump.php} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename src/Library/Benzina/Pump/{InvestsPump.php => CheckoutsPump.php} (98%) diff --git a/src/Library/Benzina/Pump/InvestsPump.php b/src/Library/Benzina/Pump/CheckoutsPump.php similarity index 98% rename from src/Library/Benzina/Pump/InvestsPump.php rename to src/Library/Benzina/Pump/CheckoutsPump.php index be70f8b..e113865 100644 --- a/src/Library/Benzina/Pump/InvestsPump.php +++ b/src/Library/Benzina/Pump/CheckoutsPump.php @@ -22,7 +22,7 @@ use App\Repository\TipjarRepository; use App\Repository\UserRepository; use Doctrine\ORM\EntityManagerInterface; -class InvestsPump implements PumpInterface +class CheckoutsPump implements PumpInterface { use ArrayPumpTrait; use ProgressivePumpTrait; @@ -145,10 +145,6 @@ class InvestsPump implements PumpInterface $checkout->addCharge($charge); $this->entityManager->persist($checkout); - - if ($checkout->getStatus() === GatewayCheckoutStatus::Pending) { - continue; - } } $this->entityManager->flush();