mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
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:
commit
ba77510e2e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue