Merge pull request #799 from woocommerce/PCP-832-enable-acdc-by-default-only-in-locations-where-woo-commerce-payments-is-not-available

Enable ACDC by default only in locations where WooCommerce Payments is not available
This commit is contained in:
Emili Castells 2022-08-22 12:52:14 +02:00 committed by GitHub
commit 86e3f38e4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 47 deletions

View file

@ -358,7 +358,7 @@ return array(
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
assert( $dcc_applies instanceof DccApplies );
$is_shop_supports_dcc = $dcc_applies->for_country_currency();
$is_shop_supports_dcc = $dcc_applies->for_country_currency() || $dcc_applies->for_wc_payments();
$onboarding_options_renderer = $container->get( 'onboarding.render-options' );
assert( $onboarding_options_renderer instanceof OnboardingOptionsRenderer );