Skip to content

Commit

Permalink
add feature flag for MBWay
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed Jan 28, 2025
1 parent 8a21517 commit 0bbc2b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gateway/GatewayModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ public function services(): array
return $method['id'] !== Constants::SWISH;
});
}
$swishFlag = (bool) apply_filters('inpsyde.feature-flags.mollie-woocommerce.mbway_enabled', false);
if (!$swishFlag) {
$availablePaymentMethods = array_filter($availablePaymentMethods, static function ($method) {
return $method['id'] !== 'mbway';
});
}
return $availablePaymentMethods;
},
'gateway.isSDDGatewayEnabled' => static function (ContainerInterface $container): bool {
Expand Down

0 comments on commit 0bbc2b4

Please sign in to comment.