mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Apply services
This commit is contained in:
parent
cdf43b5023
commit
f32c013677
1 changed files with 2 additions and 1 deletions
|
@ -2075,7 +2075,8 @@ return array(
|
||||||
|
|
||||||
'wcgateway.settings.wc-tasks.working-capital-config' => static function( ContainerInterface $container ): array {
|
'wcgateway.settings.wc-tasks.working-capital-config' => static function( ContainerInterface $container ): array {
|
||||||
$settings = $container->get( 'wcgateway.settings' );
|
$settings = $container->get( 'wcgateway.settings' );
|
||||||
$stay_updated = $settings->has( 'stay_updated' ) ? $settings->get( 'stay_updated' ) : false;
|
assert( $settings instanceof Settings );
|
||||||
|
$stay_updated = $settings->has( 'stay_updated' ) && $settings->get( 'stay_updated' );
|
||||||
|
|
||||||
if ( $container->get( 'api.shop.country' ) !== 'US' || ! $stay_updated ) {
|
if ( $container->get( 'api.shop.country' ) !== 'US' || ! $stay_updated ) {
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue