From e4e9645730328093f593d4ea0a384899f633689a Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Wed, 25 Feb 2026 14:36:46 +0100 Subject: [PATCH] feat: improve order of gateways in switch by most common ones --- src/Benzina/InvestsPump.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Benzina/InvestsPump.php b/src/Benzina/InvestsPump.php index 3724790..a730e85 100644 --- a/src/Benzina/InvestsPump.php +++ b/src/Benzina/InvestsPump.php @@ -399,18 +399,18 @@ class InvestsPump implements PumpInterface private function getCheckoutGateway(array $record): string { switch ($record['method']) { - case 'stripe_subscription': - return StripeGateway::getName(); - case 'pool': - return WalletGateway::getName(); - case 'paypal': - return PaypalGateway::getName(); case 'tpv': return CecaGateway::getName(); + case 'paypal': + return PaypalGateway::getName(); + case 'pool': + return WalletGateway::getName(); case 'cash': return CashGateway::getName(); case 'drop': return DropGateway::getName(); + case 'stripe_subscription': + return StripeGateway::getName(); default: return ''; }