Merge pull request #2346 from woocommerce/PCP-3181-place-order-button-not-visible-with-advanced-card-processing

Add filter for adding more contexts in can_render_dcc checker
This commit is contained in:
Emili Castells 2024-06-17 11:43:56 +02:00 committed by GitHub
commit ba77510e2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -707,7 +707,11 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
return $this->settings->has( 'dcc_enabled' ) && $this->settings->get( 'dcc_enabled' )
&& $this->settings->has( 'client_id' ) && $this->settings->get( 'client_id' )
&& $this->dcc_applies->for_country_currency()
&& in_array( $this->context(), array( 'checkout', 'pay-now', 'add-payment-method' ), true );
&& in_array(
$this->context(),
apply_filters( 'woocommerce_paypal_payments_can_render_dcc_contexts', array( 'checkout', 'pay-now', 'add-payment-method' ) ),
true
);
}
/**