mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
disable WcGateway if no merchant_email is present
This commit is contained in:
parent
45348788a3
commit
250e127afc
2 changed files with 15 additions and 3 deletions
|
@ -36,7 +36,8 @@ return [
|
|||
},
|
||||
'wcgateway.disabler' => static function (ContainerInterface $container): DisableGateways {
|
||||
$sessionHandler = $container->get('session.handler');
|
||||
return new DisableGateways($sessionHandler);
|
||||
$settings = $container->get('wcgateway.settings');
|
||||
return new DisableGateways($sessionHandler, $settings);
|
||||
},
|
||||
'wcgateway.settings' => static function (ContainerInterface $container): Settings {
|
||||
return new Settings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue