feat: improve order of gateways in switch by most common ones

This commit is contained in:
2026-02-25 14:36:46 +01:00
parent 8e96c8b707
commit e4e9645730
+6 -6
View File
@@ -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 '';
}